- NPE guard for previous commit

This commit is contained in:
excessum
2014-09-14 13:03:06 +00:00
parent 8472b0f82a
commit fd308ceee9

View File

@@ -1357,7 +1357,7 @@ public class ComputerUtil {
topStack.getParam("NumDmg"), topStack);
final SpellAbility sub = topStack.getSubAbility();
boolean noRegen = false;
if (sub.getApi() == ApiType.Pump) {
if (sub != null && sub.getApi() == ApiType.Pump) {
final List<String> keywords = sub.hasParam("KW") ? Arrays.asList(sub.getParam("KW").split(" & ")) : new ArrayList<String>();
for (String kw : keywords) {
if (kw.contains("can't be regenerated")) {