[pwd] prevents NPE
authorAsier Lostalé <asier.lostale@openbravo.com>
Tue, 01 Oct 2019 15:27:20 +0200
changeset 36613 220ea7e2e308
parent 36612 750d68c30817
child 36614 cfb68c364b5f
[pwd] prevents NPE
src/org/openbravo/authentication/hashing/PasswordHash.java
--- a/src/org/openbravo/authentication/hashing/PasswordHash.java	Tue Oct 01 15:23:57 2019 +0200
+++ b/src/org/openbravo/authentication/hashing/PasswordHash.java	Tue Oct 01 15:27:20 2019 +0200
@@ -79,7 +79,7 @@
           .setFilterOnReadableOrganization(false)
           .uniqueResult();
 
-      if (user == null) {
+      if (user == null || user.getPassword() == null) {
         // no user for given userName
         return Optional.empty();
       }