Unable to run check class org.sonar.java.checks.EnumMapCheck (raise NPE)

sonarcloud
java

(Dreaminpast) #1
S1640 on file /Users/minshi/Downloads/findbugs-3.0.1/src/java/edu/umd/cs/findbugs/visitclass/BetterVisitor.java, To help improve SonarJava, please report this problem to SonarSource : see https://www.sonarqube.org/community/

java.lang.NullPointerException: null

at org.sonar.java.resolve.JavaSymbol$TypeJavaSymbol.interfacesOfType(JavaSymbol.java:438)

at org.sonar.java.resolve.JavaSymbol$TypeJavaSymbol.superTypes(JavaSymbol.java:423)

at org.sonar.java.resolve.ClassJavaType.superTypeContains(ClassJavaType.java:85)

(Nicolas Peru) #2

Hi could you provide the full stacktrace and a bit more context : this is analyzed on sonarcloud ? (if not please specify version of SonarJava). Can you confirm that you compiled the project and provide the binaries to the analysis through sonar.java.binaries (this is done for you with a maven or gradle scanner).

Thanks