We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 253edc9 commit da76755Copy full SHA for da76755
src/com/loopj/android/http/JsonHttpResponseHandler.java
@@ -69,6 +69,8 @@ protected void handleSuccessMessage(String responseBody) {
69
onSuccess((JSONObject)jsonResponse);
70
} else if(jsonResponse instanceof JSONArray) {
71
onSuccess((JSONArray)jsonResponse);
72
+ } else {
73
+ throw new JSONException("Unexpected type " + jsonResponse.getClass().getName());
74
}
75
} catch(JSONException e) {
76
onFailure(e, responseBody);
0 commit comments