Skip to content

Commit

Permalink
avoid nullable site rootNode
Browse files Browse the repository at this point in the history
  • Loading branch information
azayati committed Sep 11, 2023
1 parent ad0bd21 commit f8ce394
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1818,7 +1818,7 @@ public static SiteEntity buildSiteEntity(PortalConfig site,
return null;
}
List<UserNodeRestEntity> siteNavigations = null;
if (expandNavigations) {
if (expandNavigations && rootNode != null) {
siteNavigations = toUserNodeRestEntity(rootNode.getChildren(),
true,
getOrganizationService(),
Expand Down

0 comments on commit f8ce394

Please sign in to comment.