diff --git a/src/main/kotlin/SourceReportParser.kt b/src/main/kotlin/SourceReportParser.kt index 4fce00e..a930661 100644 --- a/src/main/kotlin/SourceReportParser.kt +++ b/src/main/kotlin/SourceReportParser.kt @@ -123,7 +123,7 @@ object SourceReportParser { val lineHits = arrayOfNulls(lines.size) cov.forEach { (line, hits) -> - if (line < lines.size) { + if (line >=0 && line < lines.size) { lineHits[line] = hits } else { logger.debug("skipping invalid line $line, (total ${lines.size})")