Skip to content

Commit

Permalink
Fix a minor fault in findItemValues
Browse files Browse the repository at this point in the history
Replaced "==" with .equals() when comparing Long objects.

(cherry picked from commit d1e33ac)
  • Loading branch information
mederly committed Nov 14, 2018
1 parent c9a897a commit dd09dca
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -171,7 +171,7 @@ private Collection findItemValues(Long id, ItemPath path, Collection<PrismContai
}
Collection<PrismValue> subValues = new ArrayList<PrismValue>();
for (PrismContainerValue<V> cvalue: cvalues) {
if (id == null || id == cvalue.getId()) {
if (id == null || id.equals(cvalue.getId())) {
Item<?,?> item = cvalue.findItem(path);
if (item != null) {
subValues.addAll(PrismValue.cloneCollection(item.getValues()));
Expand Down

0 comments on commit dd09dca

Please sign in to comment.