[Solved] Java Mysterious NullPointerException


If the first line in the method isn’t executed, then the method simply doesn’t get called. There is a chance, that it is actually executed and System.out has been redirected so that it doesn’t print to the console but to somewhere else.

Take a debugger, set a breakpoint on all lines of code that call this method in your opinion , debug and step into the method. Maybe you end up somewhere else…

4

solved Java Mysterious NullPointerException