Skip to content

Commit

Permalink
fix Conflicting modification in delta exceptions when delta has no mo…
Browse files Browse the repository at this point in the history
…difications in conflict
  • Loading branch information
arnost-starosta committed Nov 2, 2018
1 parent 9943fd8 commit d8011a7
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -169,16 +169,18 @@ private Collection findItemValues(Long id, ItemPath path, Collection<PrismContai
if (cvalues == null) {
return null;
}
boolean foundValuesOnPath = false;
Collection<PrismValue> subValues = new ArrayList<PrismValue>();
for (PrismContainerValue<V> cvalue: cvalues) {
if (id == null || id == cvalue.getId()) {
Item<?,?> item = cvalue.findItem(path);
if (item != null) {
subValues.addAll(PrismValue.cloneCollection(item.getValues()));
foundValuesOnPath = true;
}
}
}
return subValues;
return foundValuesOnPath ? subValues : null;
}

/**
Expand Down

0 comments on commit d8011a7

Please sign in to comment.