This repository has been archived by the owner on May 28, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
ClientResponse.close() should not throw a NullPointerException #1944
Labels
Comments
Reported by codingfabian |
Issue-Links: |
mfuksa said: |
mfuksa said: |
pabstec said:
|
This issue was imported from java.net JIRA JERSEY-1672 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently closing the connection is not easy.
the easiest solution would be to have a finally block with just response.close().
However, depending on the server response entity may be null in ClientResponse#613
i think close should include a null check here. and just do nothing if it does not have an entity.
Affected Versions
[1.17]
The text was updated successfully, but these errors were encountered: