You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 2, 2023. It is now read-only.
HttpResponse response = httpClient.post(...)
// response had empty body, entity is null
assert response.getEntity() == null
// this will throw a NullPointerException
String entityString = response.getEntity(String.class)
And the stacktrace:
java.lang.NullPointerException: null
at com.budjb.httprequests.converter.EntityConverterManager.read(EntityConverterManager.java:175)
at com.budjb.httprequests.HttpResponse.getEntity(HttpResponse.java:162)
at com.budjb.httprequests.HttpResponse$getEntity.call(Unknown Source)
...
The text was updated successfully, but these errors were encountered:
* Fix NullPointerException when sending a null entity (#14).
* Prevent getting a response entity that does not exist from throwing an exception (#13).
* Throw a URISyntaxException instead of a NullPointerException when a URI is not absolute (#12)
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
And the stacktrace:
The text was updated successfully, but these errors were encountered: