Re: [RESOLVED] NullPointer/warnings
Quote:
Wouldn't I want to check if br.readLine() is null?
You can't check if br.readLine() is null, you can only check if br is null or if br.readLine() returns null.
You don't need to check if br is null because you have created a new BufferedReader object and assigned it to br - ie br can't possibly be null.
The value return from br.readLine() may be a String or it maybe null. You assign the returned value to allTxt ie allTxt may reference a String or it may be null so you need to test allTxt to see if it is null or not.
Re: [RESOLVED] NullPointer/warnings
My missunderstading I forgot, null can be anything, but nothing can be null.