[
https://issues.apache.org/struts/browse/WW-2398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43270#action_43270
]
Jeromy Evans commented on WW-2398:
----------------------------------
That was going to be my first commit :-(
> 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: Don Brown
> 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.