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

NullPointerException from Bridge encodeActionUrl when use portlet: syntax

    XMLWordPrintableJSON

Details

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

    Description

      When you use the portlet: syntax in an url passed to encodeActionURL the bridge determines whether its a faces view target by looking one of 2 special query string parameters (one indicates the viewId the other the viewPath). If there is no viewId and no viewPath a nullPointerException is thrown. This is because the if statement surrounding the viewPath check looks to see if the viewId string is null before derefercing the viewPath string.

      I.e. the code is
      else if (s != null && s1.equals(Bridge.FACES_USE_CURRENT_VIEW_PARAMETER))

      but should be

      else if (s1 != null && s1.equals(Bridge.FACES_USE_CURRENT_VIEW_PARAMETER))

      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: