Re: Column numbers in stack trace - enhancement request
- From: Thomas Kellerer <TAAXADSCBIXW@xxxxxxxxxxxxx>
- Date: Mon, 15 Jan 2007 13:48:05 +0100
On 15.01.2007 13:16 Sasi wrote:
value = getItem().getRelatedItem().getName().getValue();That's precisely the reason why I avoid those constructs and store the intermediate results in a local variable. And it eases debugging as well, as I can look at each result.
If the above line throws a NullPointerException, we have no clue
whether it is the getItem, getRelatedItem or the getName that is
returning a null value.
Thomas
.
- References:
- Prev by Date: Re: Column numbers in stack trace - enhancement request
- Next by Date: Re: Column numbers is stack trace - enhancement request
- Previous by thread: Re: Column numbers in stack trace - enhancement request
- Next by thread: Re: Column numbers in stack trace - enhancement request
- Index(es):