NPE in a do/while loop due to EOF...catching the EOF earlier to avoid the NPE
49
What is a NullPointerException, and how do I fix it?
49763
Problem with "scopes" of variables in try catch blocks in Java
88186
Post-increment and pre-increment within a 'for' loop produce same output
76979
Debugging return statement within catch block
111551
How do I break out of a loop in Perl?
63306
EOFexception in Java when reading objectinputstream
30263
Why is while's condition outside the do while scope
46181
How to bypass errors in arcpy for/while loop?
43364
Why is “while ( !feof (file) )” always wrong?
122660
How does using the try statement avoid a race condition?
142706
Trying to understand immediate="true" skipping inputs when it shouldn't
104399
Catching java.lang.OutOfMemoryError?
44433
Detecting EOF in C++ from a file redirected to STDIN
54382
Testing stream.good() or !stream.eof() reads last line twice
6059
C: Do-While Loop Repeating Too Much!
75233
How to stop java process gracefully?
85854
Can't use Scanner.nextInt() and Scanner.nextLine() together