Avoid NPE when parseContent attribute is missing on dojo tags/context
---------------------------------------------------------------------

                 Key: WW-2498
                 URL: https://issues.apache.org/struts/browse/WW-2498
             Project: Struts 2
          Issue Type: Improvement
          Components: Plugin - Dojo Tags
    Affects Versions: 2.1.1
            Reporter: Jeromy Evans
            Assignee: Jeromy Evans
            Priority: Minor
             Fix For: 2.1.1
         Attachments: dojoPluginParseContent.patch

If the Head.PARSE_CONTENT is not available in the context the relevant Dojo tag 
throws a NPE.
Undoubtedly users will frequently forget to set parseContent on the page's head 
tag, or on the respective widget tag so this patch provides default handling 
for the case where parseContent is null.

The objective of this patch is to reduce the potential for support queries 
regarding the NPE within struts 2.

The patch is the equivalent to WW-2398 only the affected code is repeated in 
Tree, TabbedPanel, Autocompleter, Submit, TreeNode, DateTimePicker and TextArea

See also dev discussion: http://www.mail-archive.com/[EMAIL 
PROTECTED]/msg30811.html

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

Reply via email to