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

NullPointerException in HttpEngine.readResponse #1460

Closed
isaacl opened this issue Feb 26, 2015 · 1 comment
Closed

NullPointerException in HttpEngine.readResponse #1460

isaacl opened this issue Feb 26, 2015 · 1 comment

Comments

@isaacl
Copy link

isaacl commented Feb 26, 2015

This is from v2.1.0. It might be fixed in 2.2.0 since readResponse() now calls emit() instead of flush(). NPE is on buffer.head

java.lang.NullPointerException
at okio.Okio$1.write(Okio.java:77)
at okio.AsyncTimeout$1.write(AsyncTimeout.java:155)
at okio.RealBufferedSink.flush(RealBufferedSink.java:171)
at com.squareup.okhttp.internal.http.HttpConnection$FixedLengthSink.flush(HttpConnection.java:306)
at okio.RealBufferedSink.flush(RealBufferedSink.java:173)
at com.squareup.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:636)
at com.squareup.okhttp.Call.getResponse(Call.java:240)
at com.squareup.okhttp.Call.execute(Call.java:84)

@swankjesse
Copy link
Member

I suspect this is now fixed. If you can reproduce in 2.2, please re-open.

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

No branches or pull requests

2 participants