Please post your code in code tags.

The error message is telling you what's wrong. Hint: What does the method BufferedReader.readLine() return?