Skip to content

Commit

Permalink
Merge pull request #113 from sunbird-cb/sb-cb-ext_user_creation_issue
Browse files Browse the repository at this point in the history
Unable to create user bug fix - NULL check condition
  • Loading branch information
pkranga authored Aug 2, 2022
2 parents 9bbbfc0 + 64024b3 commit 1c1bd83
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1c1bd83

Please sign in to comment.