The Free Software Media System - Server Backend & API
Add another null check
Patrick Barron9a853ca089c5
diff --git a/Jellyfin.Data/Entities/User.cs b/Jellyfin.Data/Entities/User.csindex 0a46617809..cef2edfa97 100644--- a/Jellyfin.Data/Entities/User.cs+++ b/Jellyfin.Data/Entities/User.cs@@ -38,6 +38,11 @@ namespace Jellyfin.Data.Entitiesthrow new ArgumentNullException(nameof(authenticationProviderId));}+ if (string.IsNullOrEmpty(passwordResetProviderId))+ {+ throw new ArgumentNullException(nameof(passwordResetProviderId));+ }+Username = username;AuthenticationProviderId = authenticationProviderId;PasswordResetProviderId = passwordResetProviderId;