Hi,
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?
thanks,
ltcmelo
-
Best reason for a nullpointerexception??? (2 messages)
- Posted by: Leandro Melo
- Posted on: March 21 2004 23:22 EST
Threaded Messages (2)
- It's Null... by SAF . on March 22 2004 09:55 EST
- It's Null... by Leandro Melo on March 22 2004 12:13 EST
-
It's Null...[ Go to top ]
- Posted by: SAF .
- Posted on: March 22 2004 09:55 EST
- in response to Leandro Melo
What else do you need to know? :-P -
It's Null...[ Go to top ]
- Posted by: Leandro Melo
- Posted on: March 22 2004 12:13 EST
- in response to SAF .
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
return myObj