target description NPE fix

This commit is contained in:
magenoxx 2012-05-25 22:20:01 +04:00
parent 4ae362c050
commit ec9ea835a5

View file

@ -223,7 +223,9 @@ public class TargetCreatureOrPlayer extends TargetImpl<TargetCreatureOrPlayer> {
}
else {
Player player = game.getPlayer(targetId);
sb.append(player.getName()).append(" ");
if (player != null) {
sb.append(player.getName()).append(" ");
}
}
}
return sb.toString();