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