fix in BrowserToken to avoid Null Pointer Exception
This commit is contained in:
parent
9da89f5101
commit
67d11bfa3b
|
@ -125,7 +125,8 @@ public final class BrowserToken {
|
||||||
MessageDigest digest = MessageDigest.getInstance("SHA-512");
|
MessageDigest digest = MessageDigest.getInstance("SHA-512");
|
||||||
Base64 encoder = new Base64();
|
Base64 encoder = new Base64();
|
||||||
digest.reset();
|
digest.reset();
|
||||||
digest.update(session.getWebSession().getBytes("UTF-8"));
|
if (session.getWebSession() != null)
|
||||||
|
digest.update(session.getWebSession().getBytes("UTF-8"));
|
||||||
String password = null;
|
String password = null;
|
||||||
if (MSystem.isZKRememberPasswordAllowed())
|
if (MSystem.isZKRememberPasswordAllowed())
|
||||||
password = user.getPassword();
|
password = user.getPassword();
|
||||||
|
|
Loading…
Reference in New Issue