Skip to content

Commit

Permalink
8295068: SSLEngine throws NPE parsing CertificateRequests
Browse files Browse the repository at this point in the history
Backport-of: 5667afc36275b064c7700518f453fe8657e13636
  • Loading branch information
shipilev committed Dec 19, 2023
1 parent f033de0 commit a032136
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,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 a032136

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