[ http://issues.apache.org/jira/browse/MYFACES-1420?page=all ]
Manfred Geiler updated MYFACES-1420:
------------------------------------
Status: Resolved (was: Patch Available)
Resolution: Fixed
Assignee: Manfred Geiler
patch applied
> 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
> Assigned To: Manfred Geiler
> Fix For: 1.1.5-SNAPSHOT
>
> Attachments: _SelectItemsIterator.patch,
> 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