Explorar o código

Add another null check

Patrick Barron %!s(int64=5) %!d(string=hai) anos
pai
achega
9a853ca089
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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;