• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting nullpointer exception

 
dhaval thakor
Ranch Hand
Posts: 53
Eclipse IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting null pointer exception at line 24..
i could not find where i am stucking up..

 
Paul Clapham
Sheriff
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That would be because fee_master[0] is null.

Notice that you declare that "fee_master" array, at which point all of its entries are null. You don't have any code which changes that (i.e. by putting FEE_MASTER objects into the array) and so the entries are still all null when you start trying to use them.
 
dhaval thakor
Ranch Hand
Posts: 53
Eclipse IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
THEN WHAT I SHOULD DO TO SOLVE THE PROBLEM..
I would be very thankful for your answer..
 
Wendy Gibbons
Bartender
Posts: 1111
Eclipse IDE Oracle VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would be placing my debugging effort around the result set, I think you can only go round it once. Or maybe you don't have that column.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic