Skip to content

Commit

Permalink
Merge branch 'test' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
gj0dcsa committed Dec 10, 2023
2 parents f205e7a + 663dd0a commit 9b96d08
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ public class ConformanceMessageBody {
private final JsonNode jsonBody;

public ConformanceMessageBody(String stringBody) {
this.stringBody = stringBody;
this.stringBody = stringBody == null ? "" : stringBody;
boolean isCorrectJson;
JsonNode jsonBody;
try {
jsonBody = new ObjectMapper().readTree(stringBody);
jsonBody = new ObjectMapper().readTree(this.stringBody);
isCorrectJson = true;
} catch (JsonProcessingException e) {
jsonBody = new ObjectMapper().createObjectNode();
Expand Down

0 comments on commit 9b96d08

Please sign in to comment.