Skip to content

Commit c95303d

Browse files
committed
解决ci失败问题
1 parent d1b5bfa commit c95303d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Qiniu/Storage/ResumableUploader.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public HttpResult UploadStream(Stream stream, string key, string upToken, PutExt
8484
{
8585
encodedObjectName = Base64.GetEncodedObjectName(key);
8686
}
87-
87+
8888
//check put extra
8989
if (putExtra == null)
9090
{
@@ -213,7 +213,8 @@ public HttpResult UploadStream(Stream stream, string key, string upToken, PutExt
213213
}
214214
else
215215
{
216-
if (resumeInfo.Etags[blockIndex].Count > 0)
216+
Dictionary<string, object> etag = resumeInfo.Etags[blockIndex];
217+
if (etag != null && etag.Count > 0)
217218
{
218219
context = "~";
219220
}

0 commit comments

Comments
 (0)