History | Log In     View a printable version of the current page. Get help!  
Issue Details (XML | Word)

Key: STS-354
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Tim Fennell
Reporter: Iwao AVE!
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Stripes

options-collection throws NPE when label attribute contains null

Created: 29/Mar/07 08:32 PM   Updated: 30/Mar/07 04:28 AM
Component/s: Tag Library
Affects Version/s: Release 1.4.2
Fix Version/s: Release 1.4.3

Environment: Mac OS X 10.4.9 / Java 1.5.0_07 / Apache Tomcat 5.5.20


 Description  « Hide
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());


 All   Comments   Change History      Sort Order:
Tim Fennell [30/Mar/07 04:27 AM]
Changed the affects version to 1.4.2 as this is the only /released/ version it affects.

Tim Fennell [30/Mar/07 04:28 AM]
Fixed in the trunk and the 1.4.3 branch.