992371 wrote:First of all, if you're posting code, put it between
ERRORS:-null ptr. exp.
tags to format it nicely. Secondly, how do you expect "ERRORS:-null ptr. exp." to be helpful? Java gives you the stacktrace where it tells you the exact line where the NullPointerException happens, so go read that.
Kayaman wrote:Yep. A variable you're using on that line contains a null-value. Now go figure out why. Usually it is simply forgetting to initialize it.992371 wrote:Well, there's your problem.
at Line No. 76 Nullptr exp.