Skip to content

Commit

Permalink
8312126: NullPointerException in CertStore.getCRLs after 8297955
Browse files Browse the repository at this point in the history
Backport-of: 3c743cfea00692d0b938cb1cbde936084eecf369
  • Loading branch information
gnu-andrew committed Nov 10, 2023
1 parent b506559 commit 0cdcc13
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -779,9 +779,13 @@ synchronized Collection<X509CRL> getCRLs(X509CRLSelector xsel,
} catch (IllegalArgumentException e) {
continue;
}
} else {
} else if (nameObject instanceof String) {
issuerName = (String)nameObject;
} else {
throw new CertStoreException(
"unrecognized issuerName: must be String or byte[]");
}

// If all we want is CA certs, try to get the (probably shorter) ARL
Collection<X509CRL> entryCRLs = Collections.emptySet();
if (certChecking == null || certChecking.getBasicConstraints() != -1) {
Expand Down

1 comment on commit 0cdcc13

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.