
| Key: |
STS-354
|
| Type: |
Bug
|
| Status: |
Resolved
|
| Resolution: |
Fixed
|
| Priority: |
Major
|
| Assignee: |
Tim Fennell
|
| Reporter: |
Iwao AVE!
|
| Votes: |
0
|
| Watchers: |
0
|
|
If you were logged in you would be able to see more operations.
|
|
|
|
Environment:
|
Mac OS X 10.4.9 / Java 1.5.0_07 / Apache Tomcat 5.5.20
|
|
|
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());
|
|
Description
|
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());
|
Show » |
|
|