Fixed NPE in SessionManager.

This commit is contained in:
magenoxx 2011-05-11 21:50:11 +04:00
parent 57193b3723
commit 7c18f9c6a8

View file

@ -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);
}