Skip to content

Commit 33e9189

Browse files
fix - panic on nil
Fixed the panic by doing a nil check. Fixes #135
1 parent c00aa4b commit 33e9189

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

checks/sast.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ func SASTToolInCheckRuns(c checker.Checker) checker.CheckResult {
5151
if err != nil {
5252
return checker.RetryResult(err)
5353
}
54+
if crs == nil {
55+
return checker.InconclusiveResult
56+
}
5457
for _, cr := range crs.CheckRuns {
5558
if cr.GetStatus() != "completed" {
5659
continue

0 commit comments

Comments
 (0)