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.
HttpRequest request = new HttpRequest()
// set request fields
httpClient.post(request, null)
Stacktrace:
java.lang.NullPointerException: null
at com.budjb.httprequests.converter.EntityConverterManager.write(EntityConverterManager.java:137)
at com.budjb.httprequests.AbstractHttpClient.execute(AbstractHttpClient.java:104)
at com.budjb.httprequests.AbstractHttpClient.post(AbstractHttpClient.java:216)
at com.budjb.httprequests.HttpClient$post.call(Unknown Source)
Whether it is good practice to call httpClient.post() with a null payload is debatable, but I don't believe it should throw a NullPointerException.
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.
How to reproduce:
Stacktrace:
Whether it is good practice to call
httpClient.post()
with a null payload is debatable, but I don't believe it should throw aNullPointerException
.The text was updated successfully, but these errors were encountered: