* Some changes to logging.

This commit is contained in:
LevelX2 2014-06-25 17:17:17 +02:00
parent abc441a4ba
commit d337e2cc13
3 changed files with 16 additions and 8 deletions

View file

@ -149,7 +149,15 @@ public class TournamentController {
public synchronized void join(UUID userId) {
UUID playerId = userPlayerMap.get(userId);
if (playerId == null) {
logger.error("join: got no playerId for userId: " + userId + " for tournament " + tournament.getId());
return;
}
TournamentSession tournamentSession = new TournamentSession(tournament, userId, tableId, playerId);
if (tournamentSessions == null) {
logger.error("join: got no playerId for userId: " + userId + " for tournament " + tournament.getId());
return;
}
tournamentSessions.put(playerId, tournamentSession);
UserManager.getInstance().getUser(userId).addTournament(playerId, tournamentSession);
TournamentPlayer player = tournament.getPlayer(playerId);