You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tiles.apache.org by "Oleg Gorobets (JIRA)" <ji...@apache.org> on 2008/09/24 17:47:25 UTC
[jira] Updated: (TILES-305) NPE in GetAsStringTag when using ignore
flag
[ https://issues.apache.org/struts/browse/TILES-305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oleg Gorobets updated TILES-305:
--------------------------------
Attachment: InsertAttributeTag.patch
Antonio, I've added patch.
> NPE in GetAsStringTag 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
> Attachments: InsertAttributeTag.patch
>
>
> 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;
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.