From 703fd9afbc160b62fc77c276d350be5677f071bf Mon Sep 17 00:00:00 2001 From: "Hoa V. DINH" Date: Tue, 14 May 2013 21:31:08 -0700 Subject: Fixed exception --- example/mac/macExample/macExample/MCTMsgViewController.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'example/mac') 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]; -- cgit v1.2.3