mirror of
https://github.com/yacy/yacy_search_server.git
synced 2026-10-25 05:54:15 +00:00
fix for npe
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6557 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
1 parent
7f20963b41
commit
ab3cf60dbe
1 file changed
+2
-1
@@ -208,7 +208,8 @@ public final class userDB {
|
||||
|
||||
public Entry passwordAuth(final String user, final String password) {
|
||||
final Entry entry=this.getEntry(user);
|
||||
if (entry != null && entry.getMD5EncodedUserPwd().equals(Digest.encodeMD5Hex(user+":"+password))) {
|
||||
final String md5pwd;
|
||||
if (entry != null && (md5pwd = entry.getMD5EncodedUserPwd()) != null && md5pwd.equals(Digest.encodeMD5Hex(user+":"+password))) {
|
||||
if (entry.isLoggedOut()){
|
||||
try {
|
||||
entry.setProperty(Entry.LOGGED_OUT, "false");
|
||||
|
||||
Reference in new issue
Block a user