From 18db51eb4c92f0fd321497ac68df9d6cf17581ce Mon Sep 17 00:00:00 2001 From: Oleg Agafonov Date: Sun, 4 Jul 2021 22:57:51 +0400 Subject: [PATCH] Fixed NPE error in Escape ability (#7969); --- .../src/main/java/mage/abilities/common/EscapesWithAbility.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage/src/main/java/mage/abilities/common/EscapesWithAbility.java b/Mage/src/main/java/mage/abilities/common/EscapesWithAbility.java index 158a97151e..3c7dc338de 100644 --- a/Mage/src/main/java/mage/abilities/common/EscapesWithAbility.java +++ b/Mage/src/main/java/mage/abilities/common/EscapesWithAbility.java @@ -68,7 +68,7 @@ class EscapesWithEffect extends OneShotEffect { private EscapesWithEffect(final EscapesWithEffect effect) { super(effect); this.counter = effect.counter; - this.delayedTriggeredAbility = effect.delayedTriggeredAbility.copy(); + this.delayedTriggeredAbility = (effect.delayedTriggeredAbility == null ? null : effect.delayedTriggeredAbility.copy()); } @Override