diff --git a/registration-processor/core-processor/registration-processor-uin-generator-stage/src/main/java/io/mosip/registration/processor/stages/uingenerator/stage/UinGeneratorStage.java b/registration-processor/core-processor/registration-processor-uin-generator-stage/src/main/java/io/mosip/registration/processor/stages/uingenerator/stage/UinGeneratorStage.java index a14470e0a58..a80704e0170 100644 --- a/registration-processor/core-processor/registration-processor-uin-generator-stage/src/main/java/io/mosip/registration/processor/stages/uingenerator/stage/UinGeneratorStage.java +++ b/registration-processor/core-processor/registration-processor-uin-generator-stage/src/main/java/io/mosip/registration/processor/stages/uingenerator/stage/UinGeneratorStage.java @@ -291,10 +291,9 @@ public MessageDTO process(MessageDTO object) { registrationStatusDto.getRegistrationType(), demographicIdentity, uinField, description); if (idResponseDTO.getErrors() == null || idResponseDTO.getErrors().isEmpty() - || idResponseDTO.getErrors().get(0) - .getErrorCode() != INVALID_INPUT_PARAMETER_ERROR_CODE) + || !idResponseDTO.getErrors().get(0) + .getErrorCode().equalsIgnoreCase(INVALID_INPUT_PARAMETER_ERROR_CODE)) break; - } } boolean isUinAlreadyPresent = isUinAlreadyPresent(idResponseDTO, registrationId); @@ -488,6 +487,7 @@ else if (json instanceof JSONArray) { } } + /** * Send id repo with uin. *