Skip to content

Commit

Permalink
npe fixes
Browse files Browse the repository at this point in the history
# Conflicts:
#	gui/admin-gui/src/main/java/com/evolveum/midpoint/web/component/assignment/InducedEntitlementsPanel.java
  • Loading branch information
KaterynaHonchar committed Mar 29, 2018
1 parent a440995 commit e4b5a0f
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -508,7 +508,7 @@ public static String getTargetSearchExpPathValue(ExpressionType expression){
return null;
}
PrimitiveXNode<ItemPathType> pathValue = (PrimitiveXNode<ItemPathType>)filterNodeMap.get(new QName("path"));
return pathValue != null ? pathValue.getValue().toString() : null;
return pathValue != null && pathValue.getValue() != null ? pathValue.getValue().toString() : null;
}

public static String getTargetSearchExpValue(ExpressionType expression){
Expand All @@ -532,7 +532,7 @@ public static String getTargetSearchExpValue(ExpressionType expression){
if (valueNode.getValueParser() != null) {
return valueNode.getValueParser().getStringValue();
} else {
return valueNode.getValue().toString();
return valueNode.getValue() != null ? valueNode.getValue().toString() : null;
}

}
Expand Down

0 comments on commit e4b5a0f

Please sign in to comment.