Skip to content

Commit

Permalink
fix: fix null reference in sonarqube mapper
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiri-Stary authored Feb 7, 2025
1 parent 76e84b7 commit 4618a8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/hdf-converters/src/sonarqube-mapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function parseNistTags(issue: Issue): string[] {
}
});
// CWE IDs are embedded inside of the HTML summary
issue.summary.match(/CWE-\d\d\d?\d?\d?\d?\d/gi)?.forEach((match) => {
issue?.summary?.match(/CWE-\d\d\d?\d?\d?\d?\d/gi)?.forEach((match) => {
tags.push(...CWE_NIST_MAPPING.nistFilter(match.split('-')[1]));
});
return tags;
Expand Down

0 comments on commit 4618a8b

Please sign in to comment.