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 null pointer crash with some Authentication implementations #10

Merged
merged 2 commits into from
Sep 20, 2024

Conversation

charlesdaniels
Copy link
Contributor

Java does not like it when you insert null as a value into a Map<String, Object>, which could cause the AuthorizationManager to experience a null pointer exception if the Authentication implementation returned null for certain fields. This PR adds a test to trigger the bad behavior, and updates the AuthorizationManager to get the new test to pass.

@charlesdaniels charlesdaniels merged commit 5daf15c into main Sep 20, 2024
2 checks passed
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.

1 participant