Skip to content

Commit

Permalink
fix wrong comparison to null
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmclean committed Aug 10, 2017
1 parent 2213e3b commit 9a008a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/cflint/CFLint.java
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ public void reportRule(final Element elem, final Object expression, final Contex
throw new NullPointerException("Rule not found for " + plugin.getClass().getSimpleName());
}
final PluginMessage msgInfo = ruleInfo.getMessageByCode(msgcode);
if (configuration == null) {
if (msgInfo == null) {
throw new NullPointerException(
"Message definition not found for [" + msgcode + "] in " + plugin.getClass().getSimpleName());
}
Expand Down

0 comments on commit 9a008a9

Please sign in to comment.