Skip to content
This repository was archived by the owner on Apr 18, 2023. It is now read-only.

MSLargeFileUploadTask crashes when uploading a large file and the Internet connection disappearsΒ #46

@anton-simakov

Description

@anton-simakov

MSLargeFileUploadTask crashes when uploading a large file and the Internet connection disappears.

Steps to reproduce:

  1. Start an upload of a large file using MSLargeFileUploadTask
  2. Disconnect from the internet

Result

The library crashes in

- (void)uploadNextSegmentWithCompletion:(HTTPRequestCompletionHandler)completionHandler
{
    [...]
    NSDictionary *dataDict = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:nil]; // (line 76)
    [...]
}

Reason

data is nil.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions