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

GH-2723: Fix NPE in DelegatingInvocableHandler #2724

Merged
merged 1 commit into from
Jul 5, 2023

Conversation

garyrussell
Copy link
Contributor

Resolves #2723

Previously, it was possible for handlerReturnsMessage to return null when a cachedHandlers was present, causing an NPE when unboxing the Boolean value.

Ensure that the handlerReturnsMessage map is populated before adding the handler to cachedHandlers.

cherry-pick to 2.9.x

Resolves spring-projects#2723

Previously, it was possible for `handlerReturnsMessage` to return `null`
when a `cachedHandlers` was present, causing an NPE when unboxing the
`Boolean` value.

Ensure that the `handlerReturnsMessage` map is populated before adding
the handler to `cachedHandlers`.

**cherry-pick to 2.9.x**
@artembilan artembilan merged commit 2a55f3f into spring-projects:main Jul 5, 2023
1 check passed
@artembilan
Copy link
Member

... and cherry-picked to 2.9.x.

@garyrussell garyrussell deleted the GH-2723 branch July 5, 2023 17:57
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.

Fix Race Condition in DelegatingInvocableHandler
2 participants