diff options
Diffstat (limited to 'crypto/src/asn1/cms/RecipientIdentifier.cs')
-rw-r--r-- | crypto/src/asn1/cms/RecipientIdentifier.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/asn1/cms/RecipientIdentifier.cs b/crypto/src/asn1/cms/RecipientIdentifier.cs index de9fd5e75..4fe181dff 100644 --- a/crypto/src/asn1/cms/RecipientIdentifier.cs +++ b/crypto/src/asn1/cms/RecipientIdentifier.cs @@ -32,7 +32,7 @@ namespace Org.BouncyCastle.Asn1.Cms public RecipientIdentifier(IssuerAndSerialNumber id) { - m_id = id; + m_id = id ?? throw new ArgumentNullException(nameof(id)); } public RecipientIdentifier(Asn1OctetString id) @@ -42,7 +42,7 @@ namespace Org.BouncyCastle.Asn1.Cms public RecipientIdentifier(Asn1Object id) { - m_id = id; + m_id = id ?? throw new ArgumentNullException(nameof(id)); } public bool IsTagged => m_id is Asn1TaggedObject; |