Skip to content

Commit 5edc1ba

Browse files
committed
Call (arbitrary) non-deprecated onFailure response in JsonHttpResponseHandler, fixes android-async-http#105
1 parent fa45764 commit 5edc1ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/loopj/android/http/JsonHttpResponseHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ protected void handleSuccessJsonMessage(Object jsonResponse) {
101101
} else if(jsonResponse instanceof JSONArray) {
102102
onSuccess((JSONArray)jsonResponse);
103103
} else {
104-
onFailure(new JSONException("Unexpected type " + jsonResponse.getClass().getName()));
104+
onFailure(new JSONException("Unexpected type " + jsonResponse.getClass().getName()), (JSONObject)null);
105105
}
106106
}
107107

0 commit comments

Comments
 (0)