forked from External/mage
Various NPE fixes based on server log
This commit is contained in:
parent
ebbbc1daf1
commit
bee12d709c
3 changed files with 46 additions and 41 deletions
|
|
@ -102,7 +102,7 @@ public class AbilitiesImpl<T extends Ability> extends ArrayList<T> implements Ab
|
|||
rules.add(sbRule.toString());
|
||||
}
|
||||
String rule = ability.getRule();
|
||||
if (rule.length() > 0) {
|
||||
if (rule != null && rule.length() > 0) {
|
||||
rules.add(Character.toUpperCase(rule.charAt(0)) + rule.substring(1));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue