mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +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,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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue