diff --git a/beacon-v2-validator-code/src/main/java/es/bsc/inb/ga4gh/beacon/validator/BeaconEndpointValidator.java b/beacon-v2-validator-code/src/main/java/es/bsc/inb/ga4gh/beacon/validator/BeaconEndpointValidator.java index 9beec7c..5cf1041 100644 --- a/beacon-v2-validator-code/src/main/java/es/bsc/inb/ga4gh/beacon/validator/BeaconEndpointValidator.java +++ b/beacon-v2-validator-code/src/main/java/es/bsc/inb/ga4gh/beacon/validator/BeaconEndpointValidator.java @@ -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(){} .getClass().getGenericSuperclass());