Scanner causing null pointer exception, but a hard coded string does not?
126
How do I compare strings in Java?
78586
Why doesn't "System.out.println" work in Android?
93104
What is a NumberFormatException and how can I fix it?
11537
What is IndexOutOfBoundsException? How can I fix it?
96453
Caught Throwable or Exception is null
480
What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it?
38780
Checking for null before ToString()
2116
IllegalArgumentException or NullPointerException for a null parameter?
29884
FileNotFoundException when creating a Scanner in Eclipse with Java
81518
Find out what variable is throwing a NullPointerException programmatically
13714
Scanner issue when using nextLine after nextXXX
58054
When is it OK to catch NullPointerException?
64332
avoiding null reference exceptions
80631
NullPointerException but compiling?
128865
The equals() method in Java works unexpectedly on Long data type
33103
How come invoking a (static) method on a null reference doesn't throw NullPointerException?
30221
String, StringBuffer, and StringBuilder