[
https://issues.apache.org/struts/browse/TILES-305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Antonio Petrelli updated TILES-305:
-----------------------------------
Description:
Current implementation of InsertAttributeTag throws NPE if there is no such
attribute and ignore flag is set to true. GetAsStringTag implies not-null
attribute while InsertAttributeTag from which it is derived misses check of
ignore flag before rendering. Need to add simple check in
InsertAttributeTag.render() like it was in tiles-2.0.5:
if (attr == null && ignore) {
return;
}
was:
Current implementation of GetAsStringTag throws NPE if there is no such
attribute and ignore flag is set to true. GetAsStringTag implies not-null
attribute while InsertAttributeTag from which it is derived misses check of
ignore flag before rendering. Need to add simple check in
InsertAttributeTag.render() like it was in tiles-2.0.5:
if (attr == null && ignore) {
return;
}
Fix Version/s: 2.1.1
Summary: NPE in InsertAttributeTag when using ignore flag (was: NPE
in GetAsStringTag when using ignore flag)
In fact this bug involves InsertAttributeTag, not only GetAsStringTag, so I
modified the summary and the description.
> NPE in InsertAttributeTag when using ignore flag
> ------------------------------------------------
>
> Key: TILES-305
> URL: https://issues.apache.org/struts/browse/TILES-305
> Project: Tiles
> Issue Type: Bug
> Components: tiles-jsp (jsp support)
> Affects Versions: 2.1.0
> Reporter: Oleg Gorobets
> Assignee: Antonio Petrelli
> Fix For: 2.1.1
>
> Attachments: InsertAttributeTag.patch
>
>
> Current implementation of InsertAttributeTag throws NPE if there is no such
> attribute and ignore flag is set to true. GetAsStringTag implies not-null
> attribute while InsertAttributeTag from which it is derived misses check of
> ignore flag before rendering. Need to add simple check in
> InsertAttributeTag.render() like it was in tiles-2.0.5:
> if (attr == null && ignore) {
> return;
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.