From f8ce394646fd0ca09ddcaf17ff034b0c2e1e0606 Mon Sep 17 00:00:00 2001 From: Ayoub Zayati Date: Mon, 11 Sep 2023 10:53:00 +0200 Subject: [PATCH] avoid nullable site rootNode --- .../java/org/exoplatform/social/rest/api/EntityBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component/service/src/main/java/org/exoplatform/social/rest/api/EntityBuilder.java b/component/service/src/main/java/org/exoplatform/social/rest/api/EntityBuilder.java index 213e0c2ede6..41e716bf55e 100644 --- a/component/service/src/main/java/org/exoplatform/social/rest/api/EntityBuilder.java +++ b/component/service/src/main/java/org/exoplatform/social/rest/api/EntityBuilder.java @@ -1818,7 +1818,7 @@ public static SiteEntity buildSiteEntity(PortalConfig site, return null; } List siteNavigations = null; - if (expandNavigations) { + if (expandNavigations && rootNode != null) { siteNavigations = toUserNodeRestEntity(rootNode.getChildren(), true, getOrganizationService(),