Skip to content

Commit

Permalink
fix NPE when ref in associasion is null
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Jan 28, 2022
1 parent 46575e2 commit 60a9fd6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@ private PrismReference fillInShadowReference(RefinedAssociationDefinition def, P

for (PrismContainerValue<ShadowAssociationType> associationValue : item.getValues()) {
ShadowAssociationType shadowAssociation = associationValue.asContainerable();
if (shadowAssociation.getName().equals(def.getName())) {
if (shadowAssociation.getName().equals(def.getName())
&& associationValue.contains(ShadowAssociationType.F_SHADOW_REF)) {
shadowAss.add(associationValue.findReference(ShadowAssociationType.F_SHADOW_REF).getValue().clone());
}
}
Expand Down

0 comments on commit 60a9fd6

Please sign in to comment.