Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
SergiAguilo committed Mar 6, 2024
2 parents 0a33d03 + 332a22d commit ec9b9db
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 ec9b9db

Please sign in to comment.