Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NullPointerException

 
Satyajeet Kadam
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When i execute this query by giving email explicity it executes fine but from application i receive Null poibter exception
please help



 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whatever admin is must be null.
 
Satyajeet Kadam
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for your reply, i have already done that
see my entire code,

my entire code




console

 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Whatever you are doing on line 66 of AdminManager must be refering to a null object. I can't say for sure - since I don't know what is happening on that line - but my guess is you have not assigned a value to admin. Looking though your code this does seem to be the case. You seem to have a variable called cadmin which you use to refer to a Statement instance. I don't see anywhere that you do the same for your variable admin.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic