check for null in judgeCard, just in case

This commit is contained in:
Andy Janata 2012-11-09 23:17:45 -08:00
parent 18e51e9d04
commit 1849588bf7
1 changed files with 3 additions and 1 deletions

View File

@ -1225,7 +1225,9 @@ public class Game {
return ErrorCode.NOT_YOUR_TURN;
}
player.resetSkipCount();
if (null != player) {
player.resetSkipCount();
}
cardPlayer = playedCards.getPlayerForId(cardId);
if (cardPlayer == null) {