Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-1420

Null Pointer Exception in SelectItemsIterator.next() if binding is null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.4, 1.1.5-SNAPSHOT
    • 1.1.5
    • None
    • None
    • Linux Fedora core 5

    Description

      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.

      Attachments

        1. _SelectItemsIterator.patch
          0.9 kB
          Steve Ziegler
        2. SelectItemsIterator_modified.java
          7 kB
          Horia Barca

        Activity

          People

            manolito Manfred Geiler
            horia Horia Barca
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: