Explorar el Código

Add another null check

Patrick Barron hace 5 años
padre
commit
9a853ca089
Se han modificado 1 ficheros con 5 adiciones y 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;