OWASP-Benchmark/BenchmarkJava

Scorecard generation for Semgrep may be broken

JoshuaGregoryTR opened this issue · 1 comments

When attempting to generate a scorecard for the benchmark from a semgrep results JSON file, the following error occurs:

Error processing results\Benchmark_1.2-Semgrep.json. Continuing. java.lang.NullPointerException at org.owasp.benchmarkutils.score.BenchmarkScore.getLine(BenchmarkScore.java:1219) at org.owasp.benchmarkutils.score.BenchmarkScore.readActualResults(BenchmarkScore.java:932) at org.owasp.benchmarkutils.score.BenchmarkScore.process(BenchmarkScore.java:734) at org.owasp.benchmarkutils.score.BenchmarkScore.main(BenchmarkScore.java:597) at org.owasp.benchmarkutils.score.BenchmarkScore.execute(BenchmarkScore.java:366) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:972) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:293) at org.apache.maven.cli.MavenCli.main(MavenCli.java:196) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)

I have uploaded the Semgrep results to the following gist: https://gist.github.com/JoshuaGregoryTR/9b81abe6156888f2c70116fb568d49d0

@darkspirit510 - Can you look into this since you are working on the parsers already?