Skip to content

Commit 5a94efc

Browse files
authored
Merge pull request #205 from clouddxy/fix_null_body_7.2
fix_null_body [ci skip]
2 parents f16a579 + a520286 commit 5a94efc

File tree

1 file changed

+1
-1
lines changed
  • library/src/main/java/com/qiniu/android/http

1 file changed

+1
-1
lines changed

library/src/main/java/com/qiniu/android/http/Client.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ private void onRet(okhttp3.Response response, String ip, long duration,
285285
}
286286
}
287287
} else {
288-
error = new String(body);
288+
error = body == null ? "null body" : new String(body);
289289
}
290290

291291
HttpUrl u = response.request().url();

0 commit comments

Comments
 (0)