Skip to content

Commit

Permalink
Fixing stupid NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Jan 25, 2017
1 parent c0ae761 commit f1085be
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -916,7 +916,7 @@ private <F extends FocusType> void dumpRules(StringBuilder sb, String label, Col
} else {
sb.append("; ");
}
if (directPolicyRules.stream().anyMatch(d -> d==rule)) {
if (directPolicyRules != null && directPolicyRules.stream().anyMatch(d -> d==rule)) {
sb.append("!");
}
sb.append("(").append(PolicyRuleTypeUtil.toShortString(rule.getPolicyConstraints())).append(")");
Expand Down

0 comments on commit f1085be

Please sign in to comment.