Skip to content

Commit

Permalink
LPS-88014 Return early if the group is deleted to avoid an NPE testin…
Browse files Browse the repository at this point in the history
…g if the group is staged or not
  • Loading branch information
jonathanmccann authored and Máté Thurzó committed Dec 4, 2018
1 parent f7e869f commit cf6460b
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -134,6 +134,14 @@ public PortletPreferences processExportPortletPreferences(

Group group = _groupLocalService.fetchGroup(articleGroupId);

if (group == null) {
if (_log.isDebugEnabled()) {
_log.debug("No group found with group ID " + articleGroupId);
}

return portletPreferences;
}

if (ExportImportThreadLocal.isStagingInProcess() &&
!group.isStagedPortlet(JournalPortletKeys.JOURNAL)) {

Expand Down

0 comments on commit cf6460b

Please sign in to comment.