* AEtherspouts - Fixed possible null pointer exception.

This commit is contained in:
LevelX2 2014-10-11 16:53:59 +02:00
parent 8f690f7e02
commit 71764b763a

View file

@ -195,7 +195,7 @@ class AEtherspoutsEffect extends OneShotEffect {
player.moveCardToLibraryWithInfo(permanent, source.getSourceId(), game, Zone.BATTLEFIELD, false, false); player.moveCardToLibraryWithInfo(permanent, source.getSourceId(), game, Zone.BATTLEFIELD, false, false);
} }
player = playerList.getNext(game); player = playerList.getNext(game);
} while (!player.getId().equals(game.getActivePlayerId())); } while (player != null && !player.getId().equals(game.getActivePlayerId()));
return true; return true;
} }
return false; return false;