You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Adam Hardy (JIRA)" <ji...@apache.org> on 2007/10/01 22:04:36 UTC

[jira] Commented: (WW-2225) CLONE -FieldError doesn't check if fieldError is null before rendering causing freemarker error

    [ 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.