Skip to content

Commit

Permalink
Fixing NPE in object merge code (MID-3460)
Browse files Browse the repository at this point in the history
  • Loading branch information
semancik committed Oct 21, 2016
1 parent d2c22da commit 7160a38
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -362,6 +362,9 @@ private Collection<PrismValue> diffValues(List<PrismValue> currentValues, Collec
private <O extends ObjectType, I extends Item> Collection<PrismValue> getValuesToTake(PrismObject<O> objectLeft, PrismObject<O> objectRight,
String side, I origItem, MergeStategyType strategy, Expression<PrismValue, ItemDefinition> valueExpression, Task task, OperationResult result)
throws ConfigurationException, SchemaException, ExpressionEvaluationException, ObjectNotFoundException {
if (origItem == null) {
return new ArrayList<>(0);
}
if (strategy == MergeStategyType.TAKE) {
return cleanContainerIds(origItem.getClonedValues());
} else if (strategy == MergeStategyType.EXPRESSION) {
Expand Down

0 comments on commit 7160a38

Please sign in to comment.