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 NPE for commons-httpclient v3.1 (#5944) #5949

Merged
merged 3 commits into from
Apr 29, 2022
Merged

Conversation

dgradecak
Copy link
Contributor

in a certain combination of parameters when using the javaagent extension for apache-httpclient/apache-httpclient-2.0
throws a NPE

@dgradecak dgradecak marked this pull request as ready for review April 28, 2022 09:45
@dgradecak dgradecak requested a review from a team as a code owner April 28, 2022 09:45
}

@Override
int sendRequest(HttpMethod request, String method, URI uri, Map<String, String> headers) {
Copy link
Contributor

Choose a reason for hiding this comment

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

WDYT about extracting a common base class for this class and CommonsHttpClientTest. I believe this is the only method that is different in them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

of course this makes sense.

I hope the naming will be fine, otherwise just let me know.
Thank you for reviewing this.

@trask trask merged commit a06f4b1 into open-telemetry:main Apr 29, 2022
@trask
Copy link
Member

trask commented Apr 29, 2022

thanks @dgradecak!

RashmiRam pushed a commit to RashmiRam/opentelemetry-auto-instr-java that referenced this pull request May 23, 2022
…etry#5949)

* fix NPE for commons-httpclient v3.1 (open-telemetry#5944)

* fix NPE for commons-httpclient v3.1 (open-telemetry#5944) - spotless fixes

* extracting abstract class with reused code (open-telemetry#5944)
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.

None yet

4 participants