From 04e1d1771b1494ff1394ea71ae4ae4a64c3b71ef Mon Sep 17 00:00:00 2001 From: Venkata Saidurga Polamraju Date: Mon, 24 Jun 2024 07:41:03 +0530 Subject: [PATCH] [ES-1127] Signed-off-by: Venkata Saidurga Polamraju --- .../esignet/integration/service/IdaKeyBinderImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentication/esignet-integration-impl/src/main/java/io/mosip/authentication/esignet/integration/service/IdaKeyBinderImpl.java b/authentication/esignet-integration-impl/src/main/java/io/mosip/authentication/esignet/integration/service/IdaKeyBinderImpl.java index 3548098aa8b..2e004de6e03 100644 --- a/authentication/esignet-integration-impl/src/main/java/io/mosip/authentication/esignet/integration/service/IdaKeyBinderImpl.java +++ b/authentication/esignet-integration-impl/src/main/java/io/mosip/authentication/esignet/integration/service/IdaKeyBinderImpl.java @@ -142,7 +142,7 @@ public KeyBindingResult doKeyBinding(String individualId, List ch if(responseEntity.getStatusCode().is2xxSuccessful() && responseEntity.getBody() != null) { IdaResponseWrapper responseWrapper = responseEntity.getBody(); - if (responseWrapper == null && responseWrapper.getResponse() == null) //NOSONAR responseWrapper is already evaluated to be not null + if ((responseWrapper == null && responseWrapper.getResponse() == null) || responseWrapper.getErrors()!=null) //NOSONAR responseWrapper is already evaluated to be not null { log.error("Error response received from IDA (Key-binding) Errors: {}", responseWrapper.getErrors()); throw new KeyBindingException(CollectionUtils.isEmpty(responseWrapper.getErrors()) ?