I'm developing Java custom rules and at one of them I forgot to annotate the class with @Rule. When the tests ran, the only
message was about a NullPointerException. I thought... It could be anything...
After some debug, I finally found that in the class org.sonar.java.checks.verifier.CheckVerifier, in the method
private static String ruleKey(AnalyzerMessage issue), inside the else clause, the key is being recovered
even when the getAnnotation returns null. Then I discovered my mistake.
I want to ask if you could just leave a message that exposes better this error when it occurs.
Thanks! ☺👍