I had the same problem. I did this when I sent the application with a debugger, and saw that it stopped somewhere in the system classes. But in local variables, I could see a NullPointerException.
Then I realized that in the constructor of one of my classes, I did not initialize the variable.
Just double check the constructors.
Dmitry
source share