diff --git a/src/Microsoft.AspNetCore.DataProtection/KeyManagement/KeyRingBasedDataProtector.cs b/src/Microsoft.AspNetCore.DataProtection/KeyManagement/KeyRingBasedDataProtector.cs index d866ed6e3a..e0157e66fe 100644 --- a/src/Microsoft.AspNetCore.DataProtection/KeyManagement/KeyRingBasedDataProtector.cs +++ b/src/Microsoft.AspNetCore.DataProtection/KeyManagement/KeyRingBasedDataProtector.cs @@ -96,12 +96,6 @@ namespace Microsoft.AspNetCore.DataProtection.KeyManagement throw new ArgumentNullException(nameof(plaintext)); } - // argument & state checking - if (plaintext == null) - { - throw new ArgumentNullException(nameof(plaintext)); - } - try { // Perform the encryption operation using the current default encryptor.