OWASP-Benchmark / BenchmarkUtils

OWASP Benchmark Project Utilities - Provides scorecard generation and crawling tools for Benchmark style test suites.
https://owasp.org/www-project-benchmark/
GNU General Public License v3.0
15 stars 49 forks source link

#166 - Prevent NPE when accessing out of bound line #13

Closed darkspirit510 closed 2 years ago

darkspirit510 commented 2 years ago

Fixes https://github.com/OWASP-Benchmark/BenchmarkJava/issues/166. The error only occurs if the result file of Semgrep is single-line (BenchmarkScore.java:932 attempts to read second line which leads to NPE in BenchmarkScore.java:1219)