Prevent possible NPE.

This commit is contained in:
elcnesh
2014-09-14 06:19:59 +00:00
parent a31e273147
commit 7d8ec24fbe

View File

@@ -228,8 +228,10 @@ public class CardCharacteristics {
public final void setSpellAbility(SpellAbility sa) { public final void setSpellAbility(SpellAbility sa) {
this.spellAbility.clear(); this.spellAbility.clear();
if (sa != null) {
this.spellAbility.add(sa); this.spellAbility.add(sa);
} }
}
/** /**
* Gets the intrinsic ability. * Gets the intrinsic ability.