fixed some NPEs

This commit is contained in:
BetaSteward 2011-08-24 21:42:06 -04:00
parent d85bd073c7
commit 5023d13525
3 changed files with 7 additions and 4 deletions

View file

@ -219,7 +219,7 @@ public class TableManager {
controllers.remove(tableId);
tables.remove(tableId);
GamesRoomManager.getInstance().removeTable(tableId);
if (table.getMatch().getGame() != null)
if (table.getMatch() != null && table.getMatch().getGame() != null)
table.getMatch().getGame().end();
}
}