Skip to content

Commit

Permalink
move clone of prism object
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Mar 5, 2020
1 parent fd65e97 commit aa6c114
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -557,7 +557,7 @@ protected PrismObjectWrapper<O> loadObjectWrapper(PrismObject<O> objectToEdit, b
object = (PrismObject<O>) focusType.asPrismObject();
} else {
LOGGER.trace("Loading object: New object (supplied): {}", objectToEdit);
object = objectToEdit;
object = objectToEdit.clone();
}
} else {

Expand Down Expand Up @@ -601,7 +601,7 @@ protected PrismObjectWrapper<O> loadObjectWrapper(PrismObject<O> objectToEdit, b


try {
wrapper = factory.createObjectWrapper(object.clone(), itemStatus, context);
wrapper = factory.createObjectWrapper(object, itemStatus, context);
} catch (Exception ex) {
result.recordFatalError(getString("PageAdminObjectDetails.message.loadObjectWrapper.fatalError"), ex);
LoggingUtils.logUnexpectedException(LOGGER, "Couldn't load object", ex);
Expand Down

0 comments on commit aa6c114

Please sign in to comment.