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()) ?