Skip to content

Commit

Permalink
npe fix while user profile compiling on email nonce page
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Oct 24, 2022
1 parent fed9456 commit 1193c29
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ private void applyAdminGuiConfiguration(CompiledGuiProfile composite, AdminGuiCo
composite.getHomePage().getWidget().addAll(sorted);
}

if (composite.getSelfProfilePage() == null) {
if (composite.getSelfProfilePage() == null && principal != null) {
QName principalType = prismContext.getSchemaRegistry().findObjectDefinitionByCompileTimeClass(principal.getFocus().getClass()).getTypeName();
composite.setSelfProfilePage(new GuiObjectDetailsPageType().type(principalType));
}
Expand Down

0 comments on commit 1193c29

Please sign in to comment.