Skip to content

Commit

Permalink
MID-7630: fix for NPE for relation label without display on role catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Mar 8, 2022
1 parent a28a88a commit 625715b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ private IModel<String> getAlreadyAssignedIconTitleModel(AssignmentEditorDto dto)
for (QName relation : assignedRelations) {
RelationDefinitionType def = ObjectTypeUtil.findRelationDefinition(defs, relation);
String relationLabel;
if (def == null || def.getCategory() == null || def.getDisplay().getLabel() == null){
if (def == null || def.getDisplay() == null || def.getDisplay().getLabel() == null){
relationLabel = relation.getLocalPart();
} else {
relationLabel = createStringResource(def.getDisplay().getLabel()).getString();
Expand Down

0 comments on commit 625715b

Please sign in to comment.