cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <joerg.heini...@gmx.de>
Subject Re: Demystification of pipelineComponent trouble
Date Wed, 19 Sep 2007 23:38:26 GMT
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

Mime
View raw message