Fixed a crash when tapping a non-type row.
[FIXED] MP-23 Crash when tapping non-type row
This commit is contained in:
@@ -79,7 +79,12 @@
|
||||
|
||||
assert(self.navigationController.topViewController == self);
|
||||
|
||||
[delegate didSelectType:[self typeAtIndexPath:indexPath]];
|
||||
MPElementType type = [self typeAtIndexPath:indexPath];
|
||||
if (type == NSNotFound)
|
||||
// Selected a non-type row.
|
||||
return;
|
||||
|
||||
[delegate didSelectType:type];
|
||||
[self.navigationController popViewControllerAnimated:YES];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user