From 71764b763a4ea74cc85af8c033a1cd2532d6a8e4 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sat, 11 Oct 2014 16:53:59 +0200 Subject: [PATCH] * AEtherspouts - Fixed possible null pointer exception. --- Mage.Sets/src/mage/sets/magic2015/AEtherspouts.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage.Sets/src/mage/sets/magic2015/AEtherspouts.java b/Mage.Sets/src/mage/sets/magic2015/AEtherspouts.java index f81573ea01..a75ec54960 100644 --- a/Mage.Sets/src/mage/sets/magic2015/AEtherspouts.java +++ b/Mage.Sets/src/mage/sets/magic2015/AEtherspouts.java @@ -195,7 +195,7 @@ class AEtherspoutsEffect extends OneShotEffect { player.moveCardToLibraryWithInfo(permanent, source.getSourceId(), game, Zone.BATTLEFIELD, false, false); } player = playerList.getNext(game); - } while (!player.getId().equals(game.getActivePlayerId())); + } while (player != null && !player.getId().equals(game.getActivePlayerId())); return true; } return false;