[ 
https://issues.apache.org/struts/browse/TILES-305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44744#action_44744
 ] 

Antonio Petrelli commented on TILES-305:
----------------------------------------

Can you provide a fix in the form of a patch?
Thanks

> 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
>
> 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.

Reply via email to