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.3, Release 1.5
Environment: Mac OS X 10.4.9 / Java 1.5.0_07 / Apache Tomcat 5.5.20
Reporter: Iwao AVE!
Assigned To: Tim Fennell
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