Skip to content

Commit f753fe1

Browse files
authored
Merge pull request #1675 from SimonCropp/throw-ThrowIfNullOrWhiteSpace-for-type-in-IdentityProvider
ThrowIfNullOrWhiteSpace for type in IdentityProvider
2 parents 5f50345 + 7f88225 commit f753fe1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

identity-server/src/Storage/Models/IdentityProvider.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ public class IdentityProvider
4040
/// </summary>
4141
public IdentityProvider(string type)
4242
{
43-
Type = type ?? throw new ArgumentNullException(nameof(type));
43+
ArgumentException.ThrowIfNullOrWhiteSpace(type);
44+
Type = type;
4445
}
4546

4647
/// <summary>

0 commit comments

Comments
 (0)