From 099e490e4d4e8834c34adf068a6c8307f778dc88 Mon Sep 17 00:00:00 2001 From: drmDev Date: Sun, 24 Jul 2016 21:49:36 -0400 Subject: [PATCH] patching up possible NPEs on quiet speculation --- Mage.Sets/src/mage/sets/judgment/QuietSpeculation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage.Sets/src/mage/sets/judgment/QuietSpeculation.java b/Mage.Sets/src/mage/sets/judgment/QuietSpeculation.java index 8360b350a1..605a4a798a 100644 --- a/Mage.Sets/src/mage/sets/judgment/QuietSpeculation.java +++ b/Mage.Sets/src/mage/sets/judgment/QuietSpeculation.java @@ -97,7 +97,7 @@ class SearchLibraryPutInGraveEffect extends SearchEffect { public boolean apply(Game game, Ability source) { Player controller = game.getPlayer(source.getControllerId()); UUID targetPlayerID = source.getFirstTarget(); - if (controller.searchLibrary(target, game, targetPlayerID)) { + if (controller != null && targetPlayerID != null && controller.searchLibrary(target, game, targetPlayerID)) { if (target.getTargets().size() > 0) { Cards cards = new CardsImpl(target.getTargets()); controller.revealCards("Quiet Speculation", cards, game);