Skip to content

Commit

Permalink
MID-8842 ninja - fix in handling validation items during upgrade
Browse files Browse the repository at this point in the history
(cherry picked from commit 64fbe78)
  • Loading branch information
1azyman committed Jul 25, 2023
1 parent c0b9b12 commit 516457d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,14 @@ private <T extends ObjectType> UpgradeValidationItem process(PrismObject<T> obje
}
}

UpgradeValidationItem result = new UpgradeValidationItem(item);
if (processor == null) {
return null;
return result;
}

String description = processor.upgradeDescription((PrismObject) cloned, path);

boolean changed = processor.process((PrismObject) cloned, item.getItemPath());

UpgradeValidationItem result = new UpgradeValidationItem(item);
result.setChanged(changed);
result.setIdentifier(processor.getIdentifier());
result.setPhase(processor.getPhase());
Expand Down

0 comments on commit 516457d

Please sign in to comment.