mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
target description NPE fix
This commit is contained in:
parent
4ae362c050
commit
ec9ea835a5
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue