Skip to content

Commit

Permalink
npe fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Mar 1, 2023
1 parent 4da2908 commit af501be
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public static <O extends ObjectType> DisplayType getArchetypePolicyDisplayType(O
}

public static <O extends ObjectType> DisplayType getArchetypePolicyDisplayType(PrismObject<O> object, PageBase pageBase) {
if (object != null) {
if (object != null && StringUtils.isNotEmpty(object.getOid())) {
ArchetypePolicyType archetypePolicy = WebComponentUtil.getArchetypeSpecification(object, pageBase);
if (archetypePolicy != null) {
return archetypePolicy.getDisplay();
Expand Down

0 comments on commit af501be

Please sign in to comment.