Skip to content

Commit

Permalink
Fix null reference
Browse files Browse the repository at this point in the history
  • Loading branch information
checkmarx-kobi-hagmi committed May 6, 2024
1 parent c4dd7f8 commit 1482c96
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ protected Dictionary<Scan, Results> GetFirstScanWithResults(List<Scan> scanList)

Results results = cxWrapper.GetResults(new Guid(scan.ID));

if (results != null && results.results.Any() && results.results.Where(r => r.Type.Equals("sast")).Any())
if (results != null && results.results != null && results.results.Any(r => r.Type.Equals("sast")))
{
result.Add(scan, results);
break;
Expand Down

0 comments on commit 1482c96

Please sign in to comment.