Skip to content

Commit e15fc1b

Browse files
committed
Merge branch 'master' of github.com:/loopj/android-async-http
2 parents f574f8a + b30a2c6 commit e15fc1b

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.classpath

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
<classpathentry kind="src" path="src"/>
55
<classpathentry kind="src" path="gen"/>
66
<classpathentry kind="src" path="examples"/>
7-
<classpathentry kind="output" path="bin"/>
7+
<classpathentry kind="output" path="bin/classes"/>
88
</classpath>

build.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@
6868

6969
<!-- Compile and package a jar -->
7070
<target name="package" depends="compile,jar" />
71-
</project>
71+
</project>

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ protected void handleSuccessMessage(String responseBody) {
6969
onSuccess((JSONObject)jsonResponse);
7070
} else if(jsonResponse instanceof JSONArray) {
7171
onSuccess((JSONArray)jsonResponse);
72+
} else {
73+
throw new JSONException("Unexpected type " + jsonResponse.getClass().getName());
7274
}
7375
} catch(JSONException e) {
7476
onFailure(e, responseBody);

0 commit comments

Comments
 (0)