fix in BrowserToken to avoid Null Pointer Exception

This commit is contained in:
Carlos Ruiz 2011-03-07 10:25:32 -05:00
parent 9da89f5101
commit 67d11bfa3b
1 changed files with 2 additions and 1 deletions

View File

@ -125,6 +125,7 @@ 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();
if (session.getWebSession() != null)
digest.update(session.getWebSession().getBytes("UTF-8")); digest.update(session.getWebSession().getBytes("UTF-8"));
String password = null; String password = null;
if (MSystem.isZKRememberPasswordAllowed()) if (MSystem.isZKRememberPasswordAllowed())