mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
Fixed NPE in SessionManager.
This commit is contained in:
parent
7c18f9c6a8
commit
1ea69ee6c8
1 changed files with 4 additions and 1 deletions
|
@ -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 ...");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue