From ed7440cc1464d32a10cc7585adeb7352898616b0 Mon Sep 17 00:00:00 2001 From: Thomas Rittson <31796059+eliykat@users.noreply.github.com> Date: Fri, 17 Dec 2021 11:08:53 +1000 Subject: [PATCH] Fix null error in SSO existing user flow (#1773) --- bitwarden_license/src/Sso/Controllers/AccountController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitwarden_license/src/Sso/Controllers/AccountController.cs b/bitwarden_license/src/Sso/Controllers/AccountController.cs index 03c3f8a9b4..0a5ac54bd6 100644 --- a/bitwarden_license/src/Sso/Controllers/AccountController.cs +++ b/bitwarden_license/src/Sso/Controllers/AccountController.cs @@ -447,7 +447,7 @@ namespace Bit.Sso.Controllers if (existingUser != null) { if (existingUser.UsesKeyConnector && orgUser == null || - orgUser.Status == OrganizationUserStatusType.Invited) + orgUser?.Status == OrganizationUserStatusType.Invited) { throw new Exception(_i18nService.T("UserAlreadyExistsKeyConnector")); }