Add another null check

This commit is contained in:
Patrick Barron 2020-05-27 11:30:53 -04:00
parent caf6833447
commit 9a853ca089
1 changed files with 5 additions and 0 deletions

View File

@ -38,6 +38,11 @@ namespace Jellyfin.Data.Entities
throw new ArgumentNullException(nameof(authenticationProviderId));
}
if (string.IsNullOrEmpty(passwordResetProviderId))
{
throw new ArgumentNullException(nameof(passwordResetProviderId));
}
Username = username;
AuthenticationProviderId = authenticationProviderId;
PasswordResetProviderId = passwordResetProviderId;