fffy2366 / android-query

Automatically exported from code.google.com/p/android-query
0 stars 0 forks source link

Some 304 response gives NPE with code = -1 #85

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Thanks for your reply.
Yes, I need an exact status code for differentiating between 304 and other 
errors.

Thanks for reporting.

So the you expect the error code to be 304 instead of -1 right?

On Tue, Sep 11, 2012 at 4:18 PM, nagoya0 <miso...@gmail.com> wrote:
When a server returns 304, HttpResponse#getEntity() returns null.
For this reason, NPE occurs in AQuery, and AjaxStatus#code is -1.

Original issue reported on code.google.com by tinyeeliu@gmail.com on 11 Sep 2012 at 8:42

GoogleCodeExporter commented 8 years ago

Original comment by tinyeeliu@gmail.com on 11 Sep 2012 at 3:31