You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Jeromy Evans (JIRA)" <ji...@apache.org> on 2007/12/31 07:25:33 UTC

[jira] Updated: (WW-2398) AbstractRemoteBean throws NPE if Head.PARSE_CONTENT is not defined in context

     [ https://issues.apache.org/struts/browse/WW-2398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeromy Evans updated WW-2398:
-----------------------------

    Attachment: abstractremotebean.patch

Attached patch checks for a null value prior to the boolean comparison

> AbstractRemoteBean throws NPE if Head.PARSE_CONTENT is not defined in context
> -----------------------------------------------------------------------------
>
>                 Key: WW-2398
>                 URL: https://issues.apache.org/struts/browse/WW-2398
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Dojo Tags
>    Affects Versions: 2.1.0
>            Reporter: Jeromy Evans
>            Priority: Minor
>         Attachments: abstractremotebean.patch
>
>
> The AbstractRemoteBean assumes the Head tag predefines the Head.PARSE_CONTENT parameter in the context.
> boolean generateId = !(Boolean)stack.getContext().get(Head.PARSE_CONTENT);
> If the AbstractRemoveBean is rendered in a fragment loaded via XHR a Head tag may not be present and an NPE is thrown by !(null)
> A patch is proposed that will check for the Null case and assume false if not present.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.