EJB programming & troubleshooting: Best reason for a nullpointerexception???
- Posted by: Leandro Melo
- Posted on: March 21 2004 23:22 EST
i'm getting a NullPointerException. When i debbug, i get till a method that returns a object ( for example "return obj;"). At this point of execution everything seems ok, and if i take a look at the value of the obj, it has what i want.
Then when i press F6 in eclipse (step over) and get to the next line of code of the method that called the other method, i already have a nullpointerexception!
So, i have no clue what could be happening.
Can anyone help me out?
What else do you need to know? :-P
That`s the point! Cauyse when i watched the value of the object one line before the return line, and it had what i wanted.
//... manipulating object myObj
//... at this point i verify the value of myObj (in watches window) and it`s ok, then i return it