Revision: 501
          http://svn.sourceforge.net/stripes/?rev=501&view=rev
Author:   tfenne
Date:     2007-03-30 04:32:41 -0700 (Fri, 30 Mar 2007)

Log Message:
-----------
Fix for STS-354: possible NPE in OptionsCollection when an entry's label is 
null.

Modified Paths:
--------------
    trunk/stripes/src/net/sourceforge/stripes/tag/InputOptionsCollectionTag.java

Modified: 
trunk/stripes/src/net/sourceforge/stripes/tag/InputOptionsCollectionTag.java
===================================================================
--- 
trunk/stripes/src/net/sourceforge/stripes/tag/InputOptionsCollectionTag.java    
    2007-03-30 04:09:09 UTC (rev 500)
+++ 
trunk/stripes/src/net/sourceforge/stripes/tag/InputOptionsCollectionTag.java    
    2007-03-30 11:32:41 UTC (rev 501)
@@ -243,7 +243,7 @@
         tag.getAttributes().putAll(getAttributes());
 
         for (Entry entry : sortedEntries) {
-                tag.setLabel(entry.label.toString());
+                tag.setLabel(entry.label == null ? null : 
entry.label.toString());
                 tag.setValue(entry.value);
             try {
                 tag.doStartTag();


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

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