Ver Fonte

Add another null check

Patrick Barron há 5 anos atrás
pai
commit
9a853ca089
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      Jellyfin.Data/Entities/User.cs

+ 5 - 0
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;