Skip to content

Commit

Permalink
Added missing adopt()
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Jul 9, 2014
1 parent 541f4f6 commit 7ec1bed
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -201,11 +201,17 @@ private void savePerformed(AjaxRequestTarget target) {
ObjectWrapper wrapper = accountModel.getObject();
try {
ObjectDelta<ShadowType> delta = wrapper.getObjectDelta();
if (delta == null) {
return;
}
if (delta.getPrismContext() == null) {
getPrismContext().adopt(delta);
}
if (LOGGER.isTraceEnabled()) {
LOGGER.trace("Account delta computed from form:\n{}", new Object[]{delta.debugDump(3)});
}

if (delta == null || delta.isEmpty()) {
if (delta.isEmpty()) {
return;
}
WebMiscUtil.encryptCredentials(delta, true, getMidpointApplication());
Expand Down

0 comments on commit 7ec1bed

Please sign in to comment.