We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 002a3ec commit 82b0695Copy full SHA for 82b0695
core/src/main/java/org/bouncycastle/asn1/x509/Extensions.java
@@ -71,10 +71,8 @@ else if (obj != null)
71
private Extensions(
72
ASN1Sequence seq)
73
{
74
- if (seq.size() == 0)
75
- {
76
- throw new IllegalArgumentException("empty extension sequence found");
77
- }
+ // it's tempting to check there's at least one entry in the sequence. Don't!
+ // It turns out there's quite a few empty extension blocks out there...
78
79
Enumeration e = seq.getObjects();
80
0 commit comments