Uploaded image for project: 'Portals Bridges (Retired)'
  1. Portals Bridges (Retired)
  2. PB-47

FilterPortlet throws NPE on PortletConfig dependent methods when the managed portlet doesn't implement PortletConfig

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.0
    • 1.0.1
    • portletfilter
    • None

    Description

      Scott Anderson reported the following bug on the bridges-user mailing list:

      <quote>
      The portletConfig instance variable is used but never set. In the methods getInitParameter, getInitParameterNames, getPortletContext, getPortletName, & getResourceBundle you will get a NullPointerException if the Portlet being managed (portlet instance variable) is not an instance of PortletConfig.

      Scott
      </quote>

      I checked the code and can confirm this bug.
      As I already will provide a fix for PB-46, extending FilterPortlet from GenericPortlet, this will be easy to fix as GenericPortlet stores the PortletConfig itself.
      So I will fix this issue together with PB-46.

      Attachments

        Issue Links

          Activity

            People

              ate Ate Douma
              ate Ate Douma
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: