[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-880) Make UISelectItems more permissive to null-values
Peter Muir (JIRA)
jira-events at lists.jboss.org
Sun Feb 18 15:54:29 EST 2007
[ http://jira.jboss.com/jira/browse/JBSEAM-880?page=comments#action_12353486 ]
Peter Muir commented on JBSEAM-880:
-----------------------------------
I agree an NPE should not be thrown BUT I do think an exception should be thrown if value is null (IllegalArguementException with a decent message). I'm assuming your NPE was off line 155)
> Make UISelectItems more permissive to null-values
> -------------------------------------------------
>
> Key: JBSEAM-880
> URL: http://jira.jboss.com/jira/browse/JBSEAM-880
> Project: JBoss Seam
> Issue Type: Patch
> Components: JSF
> Affects Versions: 1.1.7.GA
> Reporter: Guy Veraghtert
> Assigned To: Peter Muir
> Priority: Minor
> Fix For: 1.1.7.GA
>
> Attachments: patch-880.txt
>
>
> The method createSelectItems(Object value) in UISelectItems is not permissive to null-values; a framework class should not die on NPE.
> This can be fixed by assigning an empty list to value when value == null
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list