diff options
author | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2013-05-14 21:31:08 -0700 |
---|---|---|
committer | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2013-05-14 21:31:22 -0700 |
commit | 703fd9afbc160b62fc77c276d350be5677f071bf (patch) | |
tree | 7e8fad6197ae8fb9c316e6af5fc322248a90d4c9 /example/mac | |
parent | e79638a917ee19546adcce763104d82193254ad0 (diff) |
Fixed exception
Diffstat (limited to 'example/mac')
-rw-r--r-- | example/mac/macExample/macExample/MCTMsgViewController.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/example/mac/macExample/macExample/MCTMsgViewController.m b/example/mac/macExample/macExample/MCTMsgViewController.m index adfa009c..e0205867 100644 --- a/example/mac/macExample/macExample/MCTMsgViewController.m +++ b/example/mac/macExample/macExample/MCTMsgViewController.m @@ -186,7 +186,9 @@ typedef void (^DownloadCallback)(NSError * error); [op setProgress:^(unsigned int current, unsigned int maximum) { NSLog(@"progress content: %u/%u", current, maximum); }]; - [_ops addObject:op]; + if (op != nil) { + [_ops addObject:op]; + } if (downloadFinished != NULL) { NSMutableArray * blocks; blocks = [_callbacks objectForKey:partUniqueID]; |