summary refs log tree commit diff
path: root/crypto/src/asn1/Asn1Utilities.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/Asn1Utilities.cs')
-rw-r--r--crypto/src/asn1/Asn1Utilities.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/src/asn1/Asn1Utilities.cs b/crypto/src/asn1/Asn1Utilities.cs
index ae395e4ef..6706ace72 100644
--- a/crypto/src/asn1/Asn1Utilities.cs
+++ b/crypto/src/asn1/Asn1Utilities.cs
@@ -66,6 +66,8 @@ namespace Org.BouncyCastle.Asn1
 
                 throw new ArgumentException(message, nameof(declaredExplicit));
             }
+            if (taggedObject == null)
+                throw new ArgumentNullException(nameof(taggedObject));
 
             return constructor(taggedObject.GetExplicitBaseObject());
         }