Skip to content
Snippets Groups Projects
Commit 0161167e authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Fixed possible NullPointerException.

parent d1ee9a0d
Branches
Tags
No related merge requests found
......@@ -191,6 +191,11 @@ public class UserService implements IUserService, InitializingBean, DisposableBe
@Transactional(isolation = Isolation.READ_COMMITTED)
public void removeUserFromSessionBySocketId(UUID socketId) {
User user = socketid2user.get(socketId);
if (null == user) {
LOGGER.warn("null == user for socket {}", socketId);
return;
}
user2session.remove(user);
}
......
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