mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8295068: SSLEngine throws NPE parsing CertificateRequests
Reviewed-by: xuelei
This commit is contained in:
parent
34004e1666
commit
5667afc362
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ final class CertificateRequest {
|
|||
ArrayList<String> keyTypes = new ArrayList<>(3);
|
||||
for (byte id : ids) {
|
||||
ClientCertificateType cct = ClientCertificateType.valueOf(id);
|
||||
if (cct.isAvailable) {
|
||||
if (cct != null && cct.isAvailable) {
|
||||
cct.keyAlgorithm.forEach(key -> {
|
||||
if (!keyTypes.contains(key)) {
|
||||
keyTypes.add(key);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue