Hi,

I think this issue has been discussed before on the list, I've read some
message somewhere but wanted to ask about more feedback on best practice on
this.
The problem is handling nulls with OGNL while navigating the object graph,
that is: getting bad NPE if one of the object of the navigation chain is
null.


Basically there are two solution to the issue:  add (a lots, in my case as
we have a quite complex object model) null checking methods to my
components/pages
or just configure tapestry to use a forgiving OGNL PropertyAccessor that
would return null for any method to be invoked on a null (I actually don't
like NullHandlers that create empty model objects and actually I'd prefer
not to have public no argument constructors or creating empty objects  just
for this).


I was just wondering how you deal with this and if you have particular
suggestions.

Thanks

Martino

Reply via email to