Skip to content

Commit

Permalink
8295068: SSLEngine throws NPE parsing CertificateRequests
Browse files Browse the repository at this point in the history
Reviewed-by: xuelei
  • Loading branch information
driverkt authored and XueleiFan committed Jul 7, 2023
1 parent 34004e1 commit 5667afc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ private static String[] getKeyTypes(byte[] ids) {
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);
Expand Down

1 comment on commit 5667afc

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