struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Husted (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (WW-2398) AbstractRemoteBean throws NPE if Head.PARSE_CONTENT is not defined in context
Date Tue, 05 Feb 2008 04:34:40 GMT

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

Ted Husted reassigned WW-2398:
------------------------------

    Assignee:     (was: 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
>            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.


Mime
View raw message