Skip to content
Snippets Groups Projects
Commit 2b796056 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

comparison fixed to not throw NPE

parent 6a5b4da0
No related branches found
No related tags found
1 merge request!5Frontend refactor
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment