mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
Fixed some possible exceptions.
This commit is contained in:
parent
083d4cee6d
commit
46d61a1ebc
4 changed files with 10 additions and 12 deletions
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
package mage.target.common;
|
||||
|
||||
import java.util.HashSet;
|
||||
|
|
@ -178,7 +177,9 @@ public class TargetAnyTargetAmount extends TargetAmount {
|
|||
sb.append(permanent.getLogName()).append('(').append(getTargetAmount(targetId)).append(") ");
|
||||
} else {
|
||||
Player player = game.getPlayer(targetId);
|
||||
sb.append(player.getLogName()).append('(').append(getTargetAmount(targetId)).append(") ");
|
||||
if (player != null) {
|
||||
sb.append(player.getLogName()).append('(').append(getTargetAmount(targetId)).append(") ");
|
||||
}
|
||||
}
|
||||
}
|
||||
return sb.toString();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue