From e6896fcca899c32def1415db988ca1e619d74e4c Mon Sep 17 00:00:00 2001 From: Jeff Date: Mon, 7 Jan 2019 14:41:02 -0600 Subject: [PATCH] - null check on Illusionary Terrain --- Mage.Sets/src/mage/cards/i/IllusionaryTerrain.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Mage.Sets/src/mage/cards/i/IllusionaryTerrain.java b/Mage.Sets/src/mage/cards/i/IllusionaryTerrain.java index 3d73ba4292..102e49dc61 100644 --- a/Mage.Sets/src/mage/cards/i/IllusionaryTerrain.java +++ b/Mage.Sets/src/mage/cards/i/IllusionaryTerrain.java @@ -217,7 +217,9 @@ class ChooseTwoBasicLandTypesEffect extends OneShotEffect { game.informPlayers(mageObject.getName() + ": Second chosen basic land type is " + choices.getChoice()); game.getState().setValue(mageObject.getId().toString() + "secondChoice", choices.getChoice()); choiceTwo = SubType.byDescription((String) game.getState().getValue(source.getSourceId().toString() + "secondChoice")).getDescription(); - if (mageObject instanceof Permanent) { + if (mageObject instanceof Permanent + && choiceOne != null + && choiceTwo != null) { ((Permanent) mageObject).addInfo("Chosen Types", CardUtil.addToolTipMarkTags("First chosen basic land type: " + choiceOne + "\n Second chosen basic land type: " + choiceTwo), game); }