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
NullPointerError for GET requests with an empty body #642
Comments
cbeer
added a commit
to cbeer/ldp-testsuite
that referenced
this issue
Feb 9, 2016
cbeer
added a commit
to cbeer/ldp-testsuite
that referenced
this issue
Feb 10, 2016
Thanks for pointing out. Do you think it will help if we just replace null with empty string? |
Makes sense to me, and that would match the behavior of |
I've fixed this in master now. Thanks for a very detailed issue report. I've published a new snapshot: <repositories>
<repository>
<id>sonatype</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<snapshots />
</repository>
</repositories> |
👍 thanks, the snapshot release fixes our problem. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We're seeing a NullPointerError for GET requests that have an empty body:
Here's the line in our code where things break:
https://github.com/w3c/ldp-testsuite/blob/master/src/main/java/org/w3/ldp/testsuite/mapper/RdfObjectMapper.java#L48
Tracing my way through rest-assured, it looks like the NPE error is initially caused here:
https://github.com/jayway/rest-assured/blob/master/rest-assured/src/main/groovy/com/jayway/restassured/internal/RequestSpecificationImpl.groovy#L1969
And propagates through to:
https://github.com/jayway/rest-assured/blob/master/rest-assured/src/main/groovy/com/jayway/restassured/internal/RestAssuredResponseOptionsGroovyImpl.groovy#L182-L188
The text was updated successfully, but these errors were encountered: