[
https://issues.apache.org/struts/browse/WW-2225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42319
]
Adam Hardy commented on WW-2225:
--------------------------------
this seemingly harmless error handling in my action:
this.addActionError(exception.getMessage());
causes the ActionErrorTag's freemarker template to do 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.
> CLONE -FieldError doesn't check if fieldError is null before rendering
> causing freemarker error
> -----------------------------------------------------------------------------------------------
>
> Key: WW-2225
> URL: https://issues.apache.org/struts/browse/WW-2225
> Project: Struts 2
> Issue Type: Bug
> Components: Views
> Affects Versions: 2.0.11
> Reporter: Adam Hardy
> Assignee: tm_jee
>
> FieldError doesn't check if fieldError is null before rendering causing
> freemarker error
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.