From cfd7d24e3e32a7a9c568eed752b0067222e97e40 Mon Sep 17 00:00:00 2001 From: Holash Chand Date: Fri, 21 Jun 2024 16:34:44 +0530 Subject: [PATCH] Fixed attestation null pointer exception --- .../main/java/dev/sunbirdrc/registry/helper/RegistryHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/registry/src/main/java/dev/sunbirdrc/registry/helper/RegistryHelper.java b/java/registry/src/main/java/dev/sunbirdrc/registry/helper/RegistryHelper.java index e87fb2b29..951209f04 100644 --- a/java/registry/src/main/java/dev/sunbirdrc/registry/helper/RegistryHelper.java +++ b/java/registry/src/main/java/dev/sunbirdrc/registry/helper/RegistryHelper.java @@ -1078,7 +1078,7 @@ private void updateAttestation(String attestorEntity, String userId, JsonNode en } else if (attestation.get(_osState.name()).asText().equals(States.ATTESTATION_REQUESTED.name())) { JsonNode propertyData = JSONUtil.extractPropertyDataFromEntity(uuidPropertyName, entity, attestationPolicy.getAttestationProperties(), null); if (attestation.has(propertiesUUIDKey)) { - ObjectNode propertiesUUIDs = attestations.get(propertiesUUIDKey).deepCopy(); + ObjectNode propertiesUUIDs = attestation.get(propertiesUUIDKey).deepCopy(); Map> propertiesUUIDMapper = new HashMap<>(); ObjectReader reader = objectMapper.readerFor(new TypeReference>() { });