Skip to content

Commit

Permalink
SAK-32746 - Sometimes the anonymous return from SAK-32738 is null (sa…
Browse files Browse the repository at this point in the history
  • Loading branch information
jonespm authored and ottenhoff committed Aug 3, 2017
1 parent 6f3f4f3 commit 34ef01e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ public PortalRenderContext startPageContext(String siteType, String title,


User currentUser = UserDirectoryService.getCurrentUser();
Role role = site.getUserRole(currentUser.getId());
Role role = site != null && currentUser != null ? site.getUserRole(currentUser.getId()) : null;

rcontext.put("loggedIn", Boolean.valueOf(currentUser.getId() != null));
rcontext.put("userId", currentUser.getId());
Expand Down

0 comments on commit 34ef01e

Please sign in to comment.