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

NullPointerException in TagAttributeImpl#getBoolean

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.24, 4.0.0-RC1, 2.2.15, 2.3.10, 2.3-next-M7
    • 2.3.11, 3.0.3, 2.3-next-M8, 2.2.16, 4.0.0-RC2
    • None
    • None

    Description

      Caused by: java.lang.NullPointerException:
      at org.apache.myfaces.view.facelets.tag.TagAttributeImpl.getBoolean(TagAttributeImpl.java:138)

      return type is a primitive, so we can't return null.

      https://github.com/apache/myfaces/blob/89c747e85615e3f33265e664c8361789f38ea7db/impl/src/main/java/org/apache/myfaces/view/facelets/tag/TagAttributeImpl.java#L138

      We should check for null and, if so, return false.

      Discovered TCK Test "test-faces40-selectManyCheckbox"

      https://github.com/jakartaee/faces/blob/705f0c9ec1b66fd410d69603c22311d0aed08bd0/tck/faces40/selectManyCheckbox/src/main/webapp/spec1574IT.xhtml

      Attachments

        Activity

          People

            volosied Volodymyr Siedlecki
            volosied Volodymyr Siedlecki
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: