Skip to content

Commit

Permalink
8312126: NullPointerException in CertStore.getCRLs after 8297955
Browse files Browse the repository at this point in the history
Reviewed-by: sgehwolf
Backport-of: 3c743cfea00692d0b938cb1cbde936084eecf369
  • Loading branch information
gnu-andrew committed Nov 28, 2023
1 parent 2f81fb4 commit a226a47
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -873,9 +873,13 @@ public synchronized Collection<X509CRL> engineGetCRLs(CRLSelector selector)
} 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 a226a47

@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.