Skip to content

Commit

Permalink
MOSIP-30470 code fix after testing
Browse files Browse the repository at this point in the history
Signed-off-by: Sowmya Ujjappa Banakar <[email protected]>
  • Loading branch information
Sowmya Ujjappa Banakar committed Dec 15, 2023
1 parent f154a2d commit 2058df9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ public MessageDTO process(MessageDTO object) {
demographicIdentity.put("UIN", uinField);
idResponseDTO = sendIdRepoWithUin(registrationId, registrationStatusDto.getRegistrationType(), demographicIdentity,
uinField, description);
if ((idResponseDTO.getErrors() != null && !idResponseDTO.getErrors().isEmpty()) && idResponseDTO
if (idResponseDTO.getErrors() != null && !idResponseDTO.getErrors().isEmpty() && idResponseDTO
.getErrors().get(0).getErrorCode().equalsIgnoreCase(INVALID_INPUT_PARAMETER_ERROR_CODE)) {
for (int i = 0; i < maxRetrycount; i++) {
regProcLogger.info(StatusUtil.INVALID_INPUT_PARAMETER.getMessage()+":"+StatusUtil.INVALID_INPUT_PARAMETER.getCode()+", Retrying "+(i+1)+" times");
Expand All @@ -290,7 +290,7 @@ public MessageDTO process(MessageDTO object) {
idResponseDTO = sendIdRepoWithUin(registrationId,
registrationStatusDto.getRegistrationType(), demographicIdentity,
uinField, description);
if ((idResponseDTO.getErrors() == null || idResponseDTO.getErrors().isEmpty())
if (idResponseDTO.getErrors() == null || idResponseDTO.getErrors().isEmpty()
|| idResponseDTO.getErrors().get(0)
.getErrorCode() != INVALID_INPUT_PARAMETER_ERROR_CODE)
break;
Expand Down

0 comments on commit 2058df9

Please sign in to comment.