You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Leonardo Quijano Vincenzi (JIRA)" <ta...@jakarta.apache.org> on 2005/11/10 02:54:04 UTC
[jira] Commented: (TAPESTRY-658) LabeledPropertySelectionModel throws NPE on null value
[ http://issues.apache.org/jira/browse/TAPESTRY-658?page=comments#action_12357170 ]
Leonardo Quijano Vincenzi commented on TAPESTRY-658:
----------------------------------------------------
Can someone please commit these one-liners?
> LabeledPropertySelectionModel throws NPE on null value
> ------------------------------------------------------
>
> Key: TAPESTRY-658
> URL: http://issues.apache.org/jira/browse/TAPESTRY-658
> Project: Tapestry
> Type: Bug
> Components: Framework
> Versions: 4.0
> Reporter: Leonardo Quijano Vincenzi
> Attachments: LabeledPropertySelectionModel.patch, TestLabeledPropertySelectionModel.patch
>
> Seems like LabeledPropertySelectionModel is throwing a NPE when the underlying IPropertySelectionModel returns a null value (or when specified a null value in the constructor):
> /**
> * @see org.apache.tapestry.form.IPropertySelectionModel#translateValue(java.lang.String)
> */
> public Object translateValue(String value)
> {
> return value.equals(_value) ? _option : _model.translateValue(value);
> }
--
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: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org