[ http://mc4j.org/jira/browse/STS-354?page=all ]

Tim Fennell resolved STS-354.
-----------------------------

    Fix Version/s: Release 1.4.3
       Resolution: Fixed

Fixed in the trunk and the 1.4.3 branch.

> options-collection throws NPE when label attribute contains null
> ----------------------------------------------------------------
>
>                 Key: STS-354
>                 URL: http://mc4j.org/jira/browse/STS-354
>             Project: Stripes
>          Issue Type: Bug
>          Components: Tag Library
>    Affects Versions: Release 1.4.2
>         Environment: Mac OS X 10.4.9 / Java 1.5.0_07 / Apache Tomcat 5.5.20
>            Reporter: Iwao AVE!
>         Assigned To: Tim Fennell
>             Fix For: Release 1.4.3
>
>
> I sometimes want to leave a label of option empty.
> e.g.
> <option value="0"></option>
> Currently if the collection contains null in label, it throws NPE.
> To fix this, change line 246 of InputOptionsCollectionTag.java [rev. 499]
> from:
>     tag.setLabel(entry.label.toString());
> to:
>     tag.setLabel(entry.label == null ? "" : entry.label.toString());

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://mc4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to