diff --git a/src/main/java/org/sunbird/user/registration/service/UserRegistrationServiceImpl.java b/src/main/java/org/sunbird/user/registration/service/UserRegistrationServiceImpl.java index 193670fec..09554de05 100644 --- a/src/main/java/org/sunbird/user/registration/service/UserRegistrationServiceImpl.java +++ b/src/main/java/org/sunbird/user/registration/service/UserRegistrationServiceImpl.java @@ -199,7 +199,7 @@ public void initiateCreateUserFlow(String registrationCode) { UserRegistration userReg = getUserRegistrationForRegCode(registrationCode); // Create the org if it's not already onboarded. - if (StringUtils.isEmpty(userReg.getSbOrgId())) { + if ("null".equalsIgnoreCase(userReg.getSbOrgId()) || StringUtils.isEmpty(userReg.getSbOrgId())) { SBApiResponse orgResponse = extOrgService.createOrg(getOrgCreateRequest(userReg), StringUtils.EMPTY); if (orgResponse.getResponseCode() == HttpStatus.OK) { String orgId = (String) orgResponse.getResult().get(Constants.ORGANIZATION_ID);