Fixed NPE in SessionManager.

This commit is contained in:
magenoxx 2011-05-11 21:50:31 +04:00
parent 7c18f9c6a8
commit 1ea69ee6c8

View file

@ -238,7 +238,10 @@ public class ServerImpl extends RemoteServer implements Server {
new Runnable() {
@Override
public void run() {
SessionManager.getInstance().getSession(sessionId).kill();
Session session = SessionManager.getInstance().getSession(sessionId);
if (session != null) {
session.kill();
}
logger.info("Client deregistered ...");
}
}