forked from External/mage
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…
Add table
Add a link
Reference in a new issue