From 4c73c9386603419de8180f8c0fe221024c68988d Mon Sep 17 00:00:00 2001 From: Noah Gleason Date: Tue, 19 Jun 2018 18:59:16 -0400 Subject: [PATCH] Check if choice.getColor() is null --- Mage.Sets/src/mage/cards/s/SearingRays.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage.Sets/src/mage/cards/s/SearingRays.java b/Mage.Sets/src/mage/cards/s/SearingRays.java index fdfae13157..bbd65ef0e1 100644 --- a/Mage.Sets/src/mage/cards/s/SearingRays.java +++ b/Mage.Sets/src/mage/cards/s/SearingRays.java @@ -60,7 +60,7 @@ class SearingRaysEffect extends OneShotEffect { public boolean apply(Game game, Ability source) { Player controller = game.getPlayer(source.getControllerId()); ChoiceColor choice = new ChoiceColor(); - if (controller != null && controller.choose(outcome, choice, game)) { + if (controller != null && controller.choose(outcome, choice, game) && choice.getColor() != null) { FilterCreaturePermanent filter = new FilterCreaturePermanent(choice.getColor().getDescription()+" creatures"); filter.add(new ColorPredicate(choice.getColor())); for (UUID playerId : game.getState().getPlayersInRange(controller.getId(), game)) {