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

Ensure that connection issues can be handled in Reactive REST Client #24368

Merged
merged 1 commit into from
Mar 18, 2022

Conversation

geoand
Copy link
Contributor

@geoand geoand commented Mar 17, 2022

Fixes: #24364

@geoand geoand added the triage/waiting-for-ci Ready to merge when CI successfully finishes label Mar 17, 2022
@quarkus-bot

This comment has been minimized.

@@ -247,6 +248,10 @@ public void handle(Throwable failure) {
}, new Consumer<>() {
@Override
public void accept(Throwable event) {
// set some properties to prevent NPEs down the chain
requestContext.setResponseHeaders(new MultivaluedTreeMap<>());
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this always the first handler invoked? Curious if the response headers could be overwritten if they were set previously

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It doesn't really matter if it gets overridden. All that matters in this case is that it's not null

@geoand geoand merged commit 73ea678 into quarkusio:main Mar 18, 2022
@quarkus-bot quarkus-bot bot added this to the 2.8 - main milestone Mar 18, 2022
@geoand geoand deleted the #24364 branch March 18, 2022 07:37
@quarkus-bot quarkus-bot bot added kind/bugfix and removed triage/waiting-for-ci Ready to merge when CI successfully finishes labels Mar 18, 2022
@gsmet gsmet modified the milestones: 2.8.0.CR1, 2.7.6.Final Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reactive REST Client NullPointerException
4 participants