LabeledPropertySelectionModel should support null String values
---------------------------------------------------------------
Key: TAPESTRY-732
URL: http://issues.apache.org/jira/browse/TAPESTRY-732
Project: Tapestry
Type: Improvement
Components: Framework
Versions: 4.0
Reporter: Leonardo Quijano Vincenzi
Priority: Minor
Just for robustness, LabeledPropertySelectionModel (and similar implementations
of IPropertySelectionModel), should support null values in translateField:
public Object translateValue(String value)
{
return value.equals(_value) ? _option : _model.translateValue(value);
}
This is throwing NPEs when value is null. I think null could be a valid value
in some cases, but in any case, it doesn't hurt to handle nulls in this method
(or at least throw a more verbose NPE?).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]