From 3142866ede595ea71993a1b629670b3d4e95b97e Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Thu, 12 Feb 2015 13:52:34 +0100 Subject: [PATCH] * Fixed a possible null pointer exception concerning Aura enchantments without targets log message. --- Mage/src/mage/game/GameImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage/src/mage/game/GameImpl.java b/Mage/src/mage/game/GameImpl.java index c3dcb09ffc..99b8de1db2 100644 --- a/Mage/src/mage/game/GameImpl.java +++ b/Mage/src/mage/game/GameImpl.java @@ -1520,7 +1520,7 @@ public abstract class GameImpl implements Game, Serializable { else { if (perm.getSpellAbility().getTargets().isEmpty()) { Permanent enchanted = this.getPermanent(perm.getAttachedTo()); - logger.error("Aura without target: " + perm.getName() + " attached to " + enchanted == null ? " null" : enchanted.getName()); + logger.error("Aura without target: " + perm.getName() + " attached to " + (enchanted == null ? " null" : enchanted.getName())); } else { Target target = perm.getSpellAbility().getTargets().get(0); if (target instanceof TargetPermanent) {