-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 6.2.X EE, Master
-
Fix Version/s: 7.0.0 DXP FP90, 7.0.10.13 DXP SP13, 7.0.X, 7.1.X, Master
-
Component/s: Staging, Staging > Export/Import
-
Branch Version/s:7.0.x
-
Backported to Branch:Committed
-
Story Points:1
-
Fix Priority:1
-
Git Pull Request:
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; }