aboutsummaryrefslogtreecommitdiffhomepage
path: root/example/mac
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-05-14 21:31:08 -0700
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2013-05-14 21:31:22 -0700
commit703fd9afbc160b62fc77c276d350be5677f071bf (patch)
tree7e8fad6197ae8fb9c316e6af5fc322248a90d4c9 /example/mac
parente79638a917ee19546adcce763104d82193254ad0 (diff)
Fixed exception
Diffstat (limited to 'example/mac')
-rw-r--r--example/mac/macExample/macExample/MCTMsgViewController.m4
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];