Skip to content

Commit 521bb63

Browse files
committed
rolled back accidental commit.
1 parent 30c6cc6 commit 521bb63

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

core/src/main/java/org/bouncycastle/asn1/x509/Extensions.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,10 @@ else if (obj != null)
7171
private Extensions(
7272
ASN1Sequence seq)
7373
{
74-
// it's tempting to check there's at least one entry in the sequence. Don't!
75-
// It turns out there's quite a few empty extension blocks out there...
74+
if (seq.size() == 0)
75+
{
76+
throw new IllegalArgumentException("empty extension sequence found");
77+
}
7678

7779
Enumeration e = seq.getObjects();
7880

0 commit comments

Comments
 (0)