Skip to content

Commit

Permalink
Merge pull request #1675 from SimonCropp/throw-ThrowIfNullOrWhiteSpac…
Browse files Browse the repository at this point in the history
…e-for-type-in-IdentityProvider

ThrowIfNullOrWhiteSpace for type in IdentityProvider
  • Loading branch information
josephdecock authored Jan 28, 2025
2 parents 5f50345 + 7f88225 commit f753fe1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion identity-server/src/Storage/Models/IdentityProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ public class IdentityProvider
/// </summary>
public IdentityProvider(string type)
{
Type = type ?? throw new ArgumentNullException(nameof(type));
ArgumentException.ThrowIfNullOrWhiteSpace(type);
Type = type;
}

/// <summary>
Expand Down

0 comments on commit f753fe1

Please sign in to comment.