Uploaded image for project: 'MyFaces Portlet Bridge'
  1. MyFaces Portlet Bridge
  2. PORTLETBRIDGE-183

Potential NPE in FacesContext.release

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0, 2.0.0, 3.0.0-alpha
    • 1.0.1, 2.0.1, 3.0.0-alpha
    • None
    • None

    Description

      The Bridge's FacesContext.release dereferences the return from request.getAttribute(BridgeImpl.PREEXISTING_ATTRIBUTE_NAMES) without checking to see if its null. Now it would only be null if the bridge didn't create/release FC but there seems to be at least one situation in which this has occurred and in any case the code should be written correctly to avoid the potential problem/NPE.

      Attachments

        Activity

          People

            mike_freedman Michael Freedman
            mike_freedman Michael Freedman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: