Commit 2b796056 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

comparison fixed to not throw NPE

parent 6a5b4da0
......@@ -104,7 +104,7 @@ public class UserService implements IUserService {
@Override
public AuthenticationToken login(String login, String password) {
User user = userDao.getUserByLoginAndPassword(login, password);
if (login.equals(Configuration.ANONYMOUS_LOGIN)) {
if (Configuration.ANONYMOUS_LOGIN.equals(login)) {
user = getUserByLogin(Configuration.ANONYMOUS_LOGIN);
}
if (user != null) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment