On 19.09.2007 19:20 Uhr, Vadim Gritsenko wrote:
Whether there is a variable set or not, a NPE is never good sign.
Shouldn't this case be handled? Spring for example throws a
NullValueInPathException instead.
No. No to exception :)
I suspect in this particular case (CTemplate) no exception should be
thrown at all: as far as I understand, Cocoon 2.1 will just return empty
(or null) value, but will not throw an exception. Examples:
${foo}, ${cocoon.foo}, ${continuation.foo}
all return empty value, no exception.
That's what so many people want to have for Spring as well [1] ;)
Joerg
[1] http://opensource.atlassian.com/projects/spring/browse/SPR-1671