Prevent possible NPE.

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

View File

@@ -228,7 +228,9 @@ public class CardCharacteristics {
public final void setSpellAbility(SpellAbility sa) {
this.spellAbility.clear();
this.spellAbility.add(sa);
if (sa != null) {
this.spellAbility.add(sa);
}
}
/**