Skip to content

Commit

Permalink
Set severity to UNKNOWN when reportNode has no severity
Browse files Browse the repository at this point in the history
Signed-off-by: Ayoub LABIDI <[email protected]>
  • Loading branch information
ayolab committed Nov 29, 2024
1 parent a3bea06 commit 15a7db5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ private static Set<String> severities(ReportNode reportNode) {
Set<String> severities = new HashSet<>();
if (reportNode.getValues().containsKey(ReportConstants.SEVERITY_KEY)) {
severities.add(reportNode.getValues().get(ReportConstants.SEVERITY_KEY).getValue().toString());
} else {
severities.add(Severity.UNKNOWN.name());
}
if (!isLeaf(reportNode)) {
reportNode.getChildren().forEach(child -> severities.addAll(severities(child)));
Expand Down

0 comments on commit 15a7db5

Please sign in to comment.