From c0218db9dda70a2ace5789ba96d5f7823c476a9d Mon Sep 17 00:00:00 2001 From: Jonathan Willing Date: Mon, 13 May 2013 23:36:37 -0500 Subject: check to ensure the part isn't nil before attempting to load --- example/ios/iOS UI Test/iOS UI Test/MCOMessageView.mm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'example') 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) { -- cgit v1.2.3