Some changes to logging and NPE handling.

This commit is contained in:
LevelX2 2014-08-17 20:38:57 +02:00
parent 3e789ccb1f
commit ddb9c786b4
7 changed files with 44 additions and 17 deletions

View file

@ -81,7 +81,10 @@ public class UserManager {
}
public User getUser(UUID userId) {
return users.get(userId);
if (userId != null) {
return users.get(userId);
}
return null;
}
public User findUser(String userName) {