Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java lang NullPointerException  RSS feed

 
james kinyua
Greenhorn
Posts: 28
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hae, i have a problem saving data in the database, am getting NullPointerException.
below are three java files for my code



 
Dave Tolls
Rancher
Posts: 2914
36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post the full stack trace, as well as highlight the line in your code that the NullPointerException is thrown from?

Trawling through 100s of lines of code trying to spot a potential NPE is like looking for a needle in a haystack.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!