mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
* Fixed a possible null pointer exception concerning Aura enchantments without targets log message.
This commit is contained in:
parent
38f9bb90b2
commit
3142866ede
1 changed files with 1 additions and 1 deletions
|
@ -1520,7 +1520,7 @@ public abstract class GameImpl implements Game, Serializable {
|
|||
else {
|
||||
if (perm.getSpellAbility().getTargets().isEmpty()) {
|
||||
Permanent enchanted = this.getPermanent(perm.getAttachedTo());
|
||||
logger.error("Aura without target: " + perm.getName() + " attached to " + enchanted == null ? " null" : enchanted.getName());
|
||||
logger.error("Aura without target: " + perm.getName() + " attached to " + (enchanted == null ? " null" : enchanted.getName()));
|
||||
} else {
|
||||
Target target = perm.getSpellAbility().getTargets().get(0);
|
||||
if (target instanceof TargetPermanent) {
|
||||
|
|
Loading…
Reference in a new issue