Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-67338

NPE is thrown and silently ignored in GroupImpl.isStagedPortlet in case of uninstalling a portlet

    Details

      Description

      NPE is thrown and silently ignored in GroupImpl.isStagedPortlet in case of uninstalling a portlet

      This function retrieves all configured portletIds from group.typeSettings and calls to

      Portlet stagedPortlet = PortletLocalServiceUtil.getPortletById(stagedPortletId);

      Returned value can be null but that value is not checked, so following code fails with a NPE:

      if (portletDataHandler.equals(stagedPortlet.getPortletDataHandlerInstance())) {
      

      We should check stagedPortlet:

      if (stagedPortlet == null) {
          continue;
      }
      

        Attachments

          Activity

            People

            Assignee:
            lu.liu Lu Liu
            Reporter:
            jorge.diaz Jorge Diaz
            Participants of an Issue:
            Recent user:
            Clarissa Velazquez
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              5 years, 49 weeks, 2 days ago

                Packages

                Version Package
                7.0.0 DXP FP90
                7.0.10.13 DXP SP13
                7.0.X
                7.1.X
                Master