aboutsummaryrefslogtreecommitdiffhomepage
path: root/example
diff options
context:
space:
mode:
authorGravatar Jonathan Willing <jwilling@me.com>2013-05-13 23:36:37 -0500
committerGravatar Jonathan Willing <jwilling@me.com>2013-05-13 23:36:37 -0500
commitc0218db9dda70a2ace5789ba96d5f7823c476a9d (patch)
tree2219645c753bc27a48a1bf05c9d6fcd3b4e02ca3 /example
parent55597469dfb5bc4d25dc8ba0d7469feabacdc55d (diff)
check to ensure the part isn't nil before attempting to load
Diffstat (limited to 'example')
-rwxr-xr-xexample/ios/iOS UI Test/iOS UI Test/MCOMessageView.mm3
1 files changed, 3 insertions, 0 deletions
diff --git a/example/ios/iOS UI Test/iOS UI Test/MCOMessageView.mm b/example/ios/iOS UI Test/iOS UI Test/MCOMessageView.mm
index 5a3974cc..62db481a 100755
--- a/example/ios/iOS UI Test/iOS UI Test/MCOMessageView.mm
+++ b/example/ios/iOS UI Test/iOS UI Test/MCOMessageView.mm
@@ -134,6 +134,9 @@
part = [self _partForUniqueID:partUniqueID];
}
+ if (part == nil)
+ continue;
+
NSString * partUniqueID = [part uniqueID];
NSData * data = [[self delegate] MCOMessageView:self dataForPartWithUniqueID:partUniqueID];
if (data == NULL) {