You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Horia Barca (JIRA)" <de...@myfaces.apache.org> on 2006/09/22 17:17:22 UTC

[jira] Updated: (MYFACES-1420) Null Pointer Exception in SelectItemsIterator.next() if binding is null

     [ http://issues.apache.org/jira/browse/MYFACES-1420?page=all ]

Horia Barca updated MYFACES-1420:
---------------------------------

    Status: Patch Available  (was: Open)

> Null Pointer Exception in SelectItemsIterator.next() if binding is null
> -----------------------------------------------------------------------
>
>                 Key: MYFACES-1420
>                 URL: http://issues.apache.org/jira/browse/MYFACES-1420
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 1.1.5-SNAPSHOT, 1.1.4
>         Environment: Linux Fedora core 5
>            Reporter: Horia Barca
>             Fix For: 1.1.5-SNAPSHOT
>
>         Attachments: SelectItemsIterator_modified.java
>
>
> NPE is thrown at line 183 of org.apache.myfaces.shared_impl.util.SelectItemsIterator.next() if value binding property of the current UISelectItems component is null. This is not relevant, as the exception expected at that place in the code is IllegalArgumentException. By constructing the IllegalArgumentException message, a check whether the binding is null should be made, like it's done at line 143 of the same class.

-- 
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