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

NPE with <f:selectItem>

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.11
    • 2.2.13, 2.3.0
    • General
    • None
    • Debian 9.3 GNU/Linux
      TomEE 7.0.3 Web
      Java OpenJDK 1.0.8_151

    Description

      If a simple <f:selectItem/> (i.e. without any attributes) is used, it leads to an NullPointerException in org.apache.myfaces.shared.util.SelectItemsIterator.hasNext(SelectItemsIterator.java:130) because itemValue is null.

      I am not sure if this behaviour is intended, but I guess not.

      Attachments

        1. SelectItemsIterator.patch
          0.6 kB
          Christoph Schulz

        Issue Links

          Activity

            People

              tandraschko Thomas Andraschko
              criztovyl Christoph Schulz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: