• Post Reply Bookmark Topic Watch Topic
  • New Topic

java lang NullPointerException

 
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
Ranch Hand
Posts: 2268
23
  • 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!