* Restore Balance - Fixed possible null pointer exception.

This commit is contained in:
LevelX2 2014-11-20 07:37:56 +01:00
parent 04648eb0eb
commit 088278c6a3

View file

@ -196,7 +196,7 @@ class RestoreBalanceEffect extends OneShotEffect {
for (UUID playerId : controller.getInRange()) {
Player player = game.getPlayer(playerId);
if (player != null) {
if (player != null && cardsToDiscard.get(playerId) != null) {
for (UUID cardId : cardsToDiscard.get(playerId)) {
Card card = game.getCard(cardId);
if (card != null) {