Fixed possible null pointer exception.

This commit is contained in:
LevelX2 2016-06-18 11:31:50 +02:00
parent bdebcbaf63
commit 70a22da8e3

View file

@ -714,7 +714,7 @@ public class HumanPlayer extends PlayerImpl {
}
private boolean checkPassStep(Game game) {
if (game.getActivePlayerId().equals(playerId)) {
if (playerId.equals(game.getActivePlayerId())) {
return !this.getUserData().getUserSkipPrioritySteps().getYourTurn().isPhaseStepSet(game.getStep().getType());
} else {
return !this.getUserData().getUserSkipPrioritySteps().getOpponentTurn().isPhaseStepSet(game.getStep().getType());