mirror of
https://github.com/correl/mage.git
synced 2024-11-14 19:19:32 +00:00
small fixes after comments
This commit is contained in:
parent
a522930592
commit
84081cbece
2 changed files with 5 additions and 1 deletions
|
@ -373,7 +373,7 @@ public class Session {
|
|||
} catch (HandleCallbackException ex) {
|
||||
ex.printStackTrace();
|
||||
UserManager.getInstance().getUser(userId).ifPresent(user-> {
|
||||
logger.warn("SESSION CALLBACK EXCEPTION - " + (user != null ? user.getName() : "") + " userId " + userId);
|
||||
logger.warn("SESSION CALLBACK EXCEPTION - " + user.getName() + " userId " + userId);
|
||||
logger.warn(" - method: " + call.getMethod());
|
||||
logger.warn(" - cause: " + getBasicCause(ex).toString());
|
||||
logger.trace("Stack trace:", ex);
|
||||
|
|
|
@ -313,6 +313,10 @@ public class GameController implements GameCallback {
|
|||
logger.fatal("- userId: " + userId);
|
||||
return;
|
||||
}
|
||||
if(!user.isPresent(){
|
||||
logger.fatal("User not found : "+userId);
|
||||
return;
|
||||
}
|
||||
Player player = game.getPlayer(playerId);
|
||||
if (player == null) {
|
||||
logger.fatal("Player not found - playerId: " + playerId);
|
||||
|
|
Loading…
Reference in a new issue