diff --git a/identity-server/src/Storage/Models/IdentityProvider.cs b/identity-server/src/Storage/Models/IdentityProvider.cs index a455e0a30..9305d56be 100644 --- a/identity-server/src/Storage/Models/IdentityProvider.cs +++ b/identity-server/src/Storage/Models/IdentityProvider.cs @@ -40,7 +40,8 @@ public class IdentityProvider /// public IdentityProvider(string type) { - Type = type ?? throw new ArgumentNullException(nameof(type)); + ArgumentException.ThrowIfNullOrWhiteSpace(type); + Type = type; } ///