Skip to content

Commit

Permalink
fix JsonValue.asString() invocation when value was no string (e.g. `n…
Browse files Browse the repository at this point in the history
…ull`)

Signed-off-by: Thomas Jaeckle <thomas.jaeckle@bosch.io>
  • Loading branch information
thjaeckle committed Mar 9, 2022
1 parent 7355752 commit a67e56e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ public String toString() {

private static List<AcknowledgementRequest> deserializeRequestedAcks(final JsonArray jsonArray) {
return jsonArray.stream()
.filter(JsonValue::isString)
.map(value -> AcknowledgementRequest.parseAcknowledgementRequest(value.asString()))
.collect(Collectors.toList());
}
Expand Down

0 comments on commit a67e56e

Please sign in to comment.