Skip to content

Commit

Permalink
Another GUI NPE fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Nov 6, 2017
1 parent 909251c commit 385a9e3
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -356,9 +356,10 @@ private PrismObject<UserType> loadUser() {
private List<RichHyperlinkType> loadLinksList() {
PrismObject<UserType> user = principalModel.getObject();
if (user == null) {
return new ArrayList<RichHyperlinkType>();
return new ArrayList<>();
} else {
return ((PageBase)getPage()).loadAdminGuiConfiguration().getUserDashboardLink();
AdminGuiConfigurationType adminGuiConfig = ((PageBase) getPage()).loadAdminGuiConfiguration();
return adminGuiConfig != null ? adminGuiConfig.getUserDashboardLink() : new ArrayList<>();
}
}

Expand Down

0 comments on commit 385a9e3

Please sign in to comment.