This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ResultSet related query.

 
saurabh tyagi
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What i am doing is filling dropdown Menu through ResultSet using
while(rs.next())
{
//html code.using scriptlets
}

but when i am trying to close the Database connection.it gives Null pointer error.

Can any one please tell me the problem???That why it gives that error.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It gives a Null pointer because you are trying to reference something with a null value. I can't say much more without seeing more code.
 
P. Jain
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Might be the database object that you created would be null.For further details I have to look in the code what mistake you have done.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic