Skip to content

Commit

Permalink
NPE fix
Browse files Browse the repository at this point in the history
  • Loading branch information
redmitry committed Nov 13, 2023
1 parent 109547e commit 332a22d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ private AbstractBeaconResponse validateEntryEndpoint(String endpoint,
}

final JsonObject o = value.asJsonObject().getJsonObject("response");
if (o.containsKey("collections")) {
if (o != null && o.containsKey("collections")) {
return JSONB.fromJson(json,
new BeaconCollectionsResponse<JsonObject>(){}
.getClass().getGenericSuperclass());
Expand Down

0 comments on commit 332a22d

Please sign in to comment.