mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Fixed NPE in SessionManager.
This commit is contained in:
parent
57193b3723
commit
7c18f9c6a8
1 changed files with 1 additions and 0 deletions
|
@ -49,6 +49,7 @@ public class SessionManager {
|
|||
private ConcurrentHashMap<UUID, Session> sessions = new ConcurrentHashMap<UUID, Session>();
|
||||
|
||||
public Session getSession(UUID sessionId) {
|
||||
if (sessions == null || sessionId == null) return null;
|
||||
return sessions.get(sessionId);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue