You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Ted Husted (JIRA)" <ji...@apache.org> on 2008/01/17 23:02:20 UTC
[jira] Assigned: (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 ]
Ted Husted reassigned WW-2398:
------------------------------
Assignee: Ted Husted
> 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
> Assignee: Ted Husted
> Priority: Minor
> Fix For: 2.1.1
>
> 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.