diff options
author | Jonathan Willing <jwilling@me.com> | 2013-05-13 23:36:37 -0500 |
---|---|---|
committer | Jonathan Willing <jwilling@me.com> | 2013-05-13 23:36:37 -0500 |
commit | c0218db9dda70a2ace5789ba96d5f7823c476a9d (patch) | |
tree | 2219645c753bc27a48a1bf05c9d6fcd3b4e02ca3 | |
parent | 55597469dfb5bc4d25dc8ba0d7469feabacdc55d (diff) |
check to ensure the part isn't nil before attempting to load
-rwxr-xr-x | example/ios/iOS UI Test/iOS UI Test/MCOMessageView.mm | 3 |
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) { |