struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Hardy <ahardy.str...@cyberspaceroad.com>
Subject null actionerror causes freemarker error
Date Sun, 23 Sep 2007 21:44:11 GMT
I stumbled across a nasty glitch by coding this seemingly harmless error 
handling in my action:

this.addActionError(exception.getMessage());

which in the ActionErrorTag's freemarker template causes this:

Expression error is undefined on line 4, column 50 in 
template/simple/actionerror.ftl.
The problematic instruction:
----------
==> ${error} [on line 4, column 48 in template/simple/actionerror.ftl]

The problem arises when it's a NullPointerException. There's a related Jira 
issue (marked as fixed) for Field Errors:

https://issues.apache.org/struts/browse/WW-1208

Shall I reopen this or is it considered a developer error?


regards
Adam

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message