Skip to content

Commit a9a4d03

Browse files
committed
Merge branch 'staging' into main
2 parents 26d5e9c + d947f6d commit a9a4d03

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

server/src/main/java/amosproj/server/api/schemas/CheckResultSchema.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@ public class CheckResultSchema {
2727
public CheckResultSchema(CheckResult result, JsonNode node) {
2828
this.checkName = result.getCheckName();
2929
this.result = result.getResult();
30-
this.severity = CheckSeverity.valueOf(node.get("severity").asText());
31-
this.description = node.get("description").asText();
32-
this.message = node.get("message").asText();
33-
this.fix = node.get("fix").asText();
34-
this.tag = node.get("tag").asText();
35-
this.priority = node.get("priority").asInt();
30+
if (node != null) {
31+
this.severity = CheckSeverity.valueOf(node.get("severity").asText());
32+
this.description = node.get("description").asText();
33+
this.message = node.get("message").asText();
34+
this.fix = node.get("fix").asText();
35+
this.tag = node.get("tag").asText();
36+
this.priority = node.get("priority").asInt();
37+
}
3638
}
3739

3840
public String getCheckName() {

0 commit comments

Comments
 (0)