We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66d8aed commit 01774dbCopy full SHA for 01774db
DigitalLearningSolutions.Web/Controllers/LoginController.cs
@@ -227,7 +227,11 @@ int centreIdToLogInto
227
IssuedUtc = clockUtility.UtcNow,
228
};
229
var centreAccountSet = userEntity?.GetCentreAccountSet(centreIdToLogInto);
230
- loginService.UpdateLastAccessedForDelegatesAccountsTable(centreAccountSet.DelegateAccount.Id);
+
231
+ if (centreAccountSet?.DelegateAccount?.Id != null)
232
+ {
233
+ loginService.UpdateLastAccessedForDelegatesAccountsTable(centreAccountSet.DelegateAccount.Id);
234
+ }
235
236
var adminAccount = centreAccountSet?.AdminAccount;
237
if (adminAccount?.Active == true)
0 commit comments