From ec9ea835a5de39ac0e11453d9b716fe544b42159 Mon Sep 17 00:00:00 2001 From: magenoxx Date: Fri, 25 May 2012 22:20:01 +0400 Subject: [PATCH] target description NPE fix --- Mage/src/mage/target/common/TargetCreatureOrPlayer.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Mage/src/mage/target/common/TargetCreatureOrPlayer.java b/Mage/src/mage/target/common/TargetCreatureOrPlayer.java index 8aabed109d..7c30d31700 100644 --- a/Mage/src/mage/target/common/TargetCreatureOrPlayer.java +++ b/Mage/src/mage/target/common/TargetCreatureOrPlayer.java @@ -223,7 +223,9 @@ public class TargetCreatureOrPlayer extends TargetImpl { } else { Player player = game.getPlayer(targetId); - sb.append(player.getName()).append(" "); + if (player != null) { + sb.append(player.getName()).append(" "); + } } } return sb.toString();