From 7f882251b827fe8948a5aaa92243f9b00a0083a2 Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Fri, 20 Dec 2024 14:30:35 +1100 Subject: [PATCH] ThrowIfNullOrWhiteSpace for type in IdentityProvider --- identity-server/src/Storage/Models/IdentityProvider.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } ///