<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><font face="Roboto">Hi,</font></p>
    <p><font face="Roboto">we are running midpoint 3.6 and we would like
        to switch the password storage method from enrcyption to hash.<br>
        Now, if we create a new user with an empty password from the
        gui, we got this error:<br>
      </font><br>
    </p>
    <p>java.lang.IllegalStateException: Subresult
      com.evolveum.midpoint.model.impl.lens.ChangeExecutor.execute of
      operation
      com.evolveum.midpoint.model.api.ModelService.executeChanges is
      still UNKNOWN during cleanup; during handling of exception
      java.lang.NullPointerException<br>
          at
com.evolveum.midpoint.schema.result.OperationResult.cleanupResult(OperationResult.java:1277)<br>
          at
com.evolveum.midpoint.model.impl.controller.ModelUtils.recordFatalError(ModelUtils.java:75)<br>
          at
com.evolveum.midpoint.model.impl.controller.ModelUtils.recordFatalError(ModelUtils.java:66)<br>
          at
com.evolveum.midpoint.model.impl.controller.ModelController.executeChanges(ModelController.java:596)<br>
          at sun.reflect.GeneratedMethodAccessor1772.invoke(Unknown
      Source)<br>
          at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br>
          at java.lang.reflect.Method.invoke(Method.java:498)<br>
          at
org.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke(LazyInitProxyFactory.java:507)<br>
          at com.sun.proxy.$Proxy166.executeChanges(Unknown Source)<br>
          at
com.evolveum.midpoint.web.component.progress.ProgressReporter.lambda$executeChangesAsync$0(ProgressReporter.java:187)<br>
          at java.lang.Thread.run(Thread.java:745)<br>
      Caused by: java.lang.NullPointerException<br>
          at
com.evolveum.midpoint.model.impl.lens.projector.credentials.CredentialsProcessor.transformFocusExectionDeltaCredential(CredentialsProcessor.java:232)<br>
          at
com.evolveum.midpoint.model.impl.lens.projector.credentials.CredentialsProcessor.transformFocusExectionDelta(CredentialsProcessor.java:207)<br>
          at
com.evolveum.midpoint.model.impl.lens.ChangeExecutor.executeChanges(ChangeExecutor.java:187)<br>
          at
com.evolveum.midpoint.model.impl.lens.Clockwork.lambda$processSecondary$0(Clockwork.java:481)<br>
          at
com.evolveum.midpoint.model.impl.lens.LensUtil.partialExecute(LensUtil.java:1253)<br>
          at
com.evolveum.midpoint.model.impl.lens.LensUtil.partialExecute(LensUtil.java:1240)<br>
          at
com.evolveum.midpoint.model.impl.lens.Clockwork.processSecondary(Clockwork.java:479)<br>
          at
com.evolveum.midpoint.model.impl.lens.Clockwork.click(Clockwork.java:327)<br>
          at
      com.evolveum.midpoint.model.impl.lens.Clockwork.run(Clockwork.java:203)<br>
          at
com.evolveum.midpoint.model.impl.controller.ModelController.executeChanges(ModelController.java:569)</p>
    <p>with encryption method this error does not happen and one can
      create a new user from the gui without add the password.<br>
      <br>
      Is this a bug?<br>
    </p>
    <p><br>
    </p>
  </body>
</html>