File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
server/src/main/java/amosproj/server/api/schemas Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff 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 () {
You can’t perform that action at this time.
0 commit comments