Skip to content

Commit a226a47

Browse files
committedNov 28, 2023
8312126: NullPointerException in CertStore.getCRLs after 8297955
Reviewed-by: sgehwolf Backport-of: 3c743cfea00692d0b938cb1cbde936084eecf369
1 parent 2f81fb4 commit a226a47

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
 

‎jdk/src/share/classes/sun/security/provider/certpath/ldap/LDAPCertStore.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -873,9 +873,13 @@ public synchronized Collection<X509CRL> engineGetCRLs(CRLSelector selector)
873873
} catch (IllegalArgumentException e) {
874874
continue;
875875
}
876-
} else {
876+
} else if (nameObject instanceof String) {
877877
issuerName = (String)nameObject;
878+
} else {
879+
throw new CertStoreException(
880+
"unrecognized issuerName: must be String or byte[]");
878881
}
882+
879883
// If all we want is CA certs, try to get the (probably shorter) ARL
880884
Collection<X509CRL> entryCRLs = Collections.emptySet();
881885
if (certChecking == null || certChecking.getBasicConstraints() != -1) {

0 commit comments

Comments
 (0)