aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Barron <barronpm@gmail.com>2020-05-27 11:30:53 -0400
committerPatrick Barron <barronpm@gmail.com>2020-05-27 11:30:53 -0400
commit9a853ca089c593b9e4a269a10272fc744da5af9c (patch)
tree67a442a7a31f088028466d83b476c547f540b240
parentcaf6833447f2c8f1018f069660b81c5c6a99ea06 (diff)
Add another null check
-rw-r--r--Jellyfin.Data/Entities/User.cs5
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;