RFR: 8328864: NullPointerException in sun.security.jca.ProviderList.getService()

Weijun Wang weijun at openjdk.org
Wed Apr 17 13:35:00 UTC 2024


On Thu, 11 Apr 2024 16:29:00 GMT, Ben Perez <duke at openjdk.org> wrote:

> Updated `getService` to check whether `getProvider` returns null when checking for preferred providers and `continue` the loop if that is the case. Added `NullPreferredList` test.

test/jdk/sun/security/jca/app-security.properties line 1:

> 1: jdk.security.provider.preferred=KeyStore.PKCS12:JipherJCE

How about just `NonExistingProvider`? The `JipherJCE` name does not make it clear what you intend it to do.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/18746#discussion_r1568852781



More information about the security-dev mailing list