Various NPE fixes based on server log

This commit is contained in:
drmDev 2016-04-14 09:55:13 -04:00
parent ebbbc1daf1
commit bee12d709c
3 changed files with 46 additions and 41 deletions

View file

@ -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));
}
}