Re: Column numbers in stack trace - enhancement request



On 15.01.2007 13:16 Sasi wrote:
value = getItem().getRelatedItem().getName().getValue();

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.
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.

Thomas
.