This commit is contained in:
magenoxx 2012-06-27 15:06:30 +04:00
parent c2a517f1b3
commit f44ceee263

View file

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