fixed several NPEs on server

This commit is contained in:
BetaSteward 2011-10-20 12:49:31 -04:00
parent 621e0fb4b1
commit ca6e1556f0
5 changed files with 16 additions and 7 deletions

View file

@ -217,11 +217,15 @@ public class TournamentController {
}
public void submitDeck(UUID playerId, Deck deck) {
tournamentSessions.get(playerId).submitDeck(deck);
if (tournamentSessions.containsKey(playerId)) {
tournamentSessions.get(playerId).submitDeck(deck);
}
}
public void updateDeck(UUID playerId, Deck deck) {
tournamentSessions.get(playerId).updateDeck(deck);
if (tournamentSessions.containsKey(playerId)) {
tournamentSessions.get(playerId).updateDeck(deck);
}
}
public void timeout(UUID userId) {