Skip to content

Commit 1d2f5a0

Browse files
committed
调整
1 parent 9f9ebe9 commit 1d2f5a0

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/main/java/com/qiniu/api/resumableio/ChunkUploadCallRet.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,19 @@ public ChunkUploadCallRet(int statusCode, Exception e) {
2727
}
2828

2929
private void doUnmarshal() {
30+
if (this.exception != null || this.response == null
31+
|| !this.response.trim().startsWith("{")) {
32+
return;
33+
}
3034
try {
31-
if(this.exception != null || this.response != null && this.response.trim().startsWith("{")){
32-
unmarshal();
33-
}
35+
unmarshal();
3436
} catch (Exception e) {
3537
e.printStackTrace();
36-
if(this.exception == null){
38+
if (this.exception == null) {
3739
this.exception = e;
3840
}
3941
}
40-
42+
4143
}
4244

4345
protected void unmarshal() throws JSONException{

0 commit comments

Comments
 (0)