mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
NPE fix
This commit is contained in:
parent
c2a517f1b3
commit
f44ceee263
1 changed files with 5 additions and 1 deletions
|
@ -499,7 +499,11 @@ public class MageServerImpl implements MageServer {
|
|||
execute("sendPlayerInteger", sessionId, new Action() {
|
||||
public void execute() {
|
||||
User user = SessionManager.getInstance().getUser(sessionId);
|
||||
user.sendPlayerInteger(gameId, data);
|
||||
if (user != null) {
|
||||
user.sendPlayerInteger(gameId, data);
|
||||
} else {
|
||||
logger.warn("Your session expired: gameId=" + gameId + ", sessionId=" + sessionId);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue