Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix NullPointerException on invalid keys #363

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

SalusaSecondus
Copy link
Contributor

ACCP can throw an incorrect NullPointerException when attempting to translate invalid keys with null formats. Per the JDK documentation this should throw an InvalidKeySpecException instead. By throwing the incorrect exception ACCP prevents the JCA from correctly falling back to providers which might support the keys.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@SalusaSecondus SalusaSecondus requested a review from a team as a code owner February 13, 2024 20:51
Copy link
Contributor

@geedo0 geedo0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@WillChilds-Klein WillChilds-Klein merged commit cb91fe2 into corretto:main Feb 15, 2024
10 checks passed
@SalusaSecondus SalusaSecondus deleted the key_npe branch February 15, 2024 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants