[jdk21u-dev] RFR: 8328864: NullPointerException in sun.security.jca.ProviderList.getService()

Satyen Subramaniam ssubramaniam at openjdk.org
Fri Apr 4 19:04:38 UTC 2025


Backporting JDK-8328864: NullPointerException in sun.security.jca.ProviderList.getService(). Updated `getService` to check whether `getProvider` returns null when checking for preferred providers, continuing the loop if so. Added NullPreferredList test. Ran GHA Sanity Checks, local Tier 1 and 2 tests. Patch is clean.

-------------

Commit messages:
 - Backport cd3a607576bede17f48c3d5ebde2bf05f3b615ba

Changes: https://git.openjdk.org/jdk21u-dev/pull/1598/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=1598&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8328864
  Stats: 48 lines in 3 files changed: 45 ins; 1 del; 2 mod
  Patch: https://git.openjdk.org/jdk21u-dev/pull/1598.diff
  Fetch: git fetch https://git.openjdk.org/jdk21u-dev.git pull/1598/head:pull/1598

PR: https://git.openjdk.org/jdk21u-dev/pull/1598


More information about the jdk-updates-dev mailing list