diff options
| author | Patrick Barron <barronpm@gmail.com> | 2020-05-27 11:30:53 -0400 |
|---|---|---|
| committer | Patrick Barron <barronpm@gmail.com> | 2020-05-27 11:30:53 -0400 |
| commit | 9a853ca089c593b9e4a269a10272fc744da5af9c (patch) | |
| tree | 67a442a7a31f088028466d83b476c547f540b240 /Jellyfin.Data | |
| parent | caf6833447f2c8f1018f069660b81c5c6a99ea06 (diff) | |
Add another null check
Diffstat (limited to 'Jellyfin.Data')
| -rw-r--r-- | Jellyfin.Data/Entities/User.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Jellyfin.Data/Entities/User.cs b/Jellyfin.Data/Entities/User.cs index 0a4661780..cef2edfa9 100644 --- a/Jellyfin.Data/Entities/User.cs +++ b/Jellyfin.Data/Entities/User.cs @@ -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; |
