Skip to content

Commit

Permalink
fix for expression panel
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Jan 31, 2019
1 parent e1770fd commit 5a796ae
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -450,7 +450,7 @@ public static List<ObjectReferenceType> getShadowRefValue(ExpressionType express
if (expressionType == null) {
return null;
}
List<ObjectReferenceType> shadowRefList = new ArrayList<>();
List<ObjectReferenceType> shadowRefList = null;
ListXNode shadowRefNodes = getShadowRefNodesList(expressionType, false, prismContext);

if (shadowRefNodes != null) {
Expand All @@ -463,6 +463,9 @@ public static List<ObjectReferenceType> getShadowRefValue(ExpressionType express
(shadowOidNode != null && shadowOidNode.getValue() != null ? (String) shadowOidNode.getValue() : null);
shadowRef.setOid(oid);
shadowRef.setType(ShadowType.COMPLEX_TYPE);
if (shadowRefList == null){
shadowRefList = new ArrayList<>();
}
shadowRefList.add(shadowRef);
}
}
Expand Down

0 comments on commit 5a796ae

Please sign in to comment.