diff options
author | Ilya Grechuhin <i.grechuhin@gmail.com> | 2018-03-05 15:59:40 +0300 |
---|---|---|
committer | Roman Kuznetsov <r.kuznetsow@gmail.com> | 2018-03-05 16:06:19 +0300 |
commit | 7a0749818c74bbe4bb340c581cd72cba35751f9c (patch) | |
tree | 08881929152bb5fc3bfae42fa939a1a96851bb56 | |
parent | 2025beb42408e8c097d803ddb9c754bf8d572448 (diff) |
[MAPSME-6996] [ios] Fixed crash in opening hours editor.
-rw-r--r-- | iphone/Maps/UI/Editor/OpeningHours/MWMOpeningHoursEditorViewController.mm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/iphone/Maps/UI/Editor/OpeningHours/MWMOpeningHoursEditorViewController.mm b/iphone/Maps/UI/Editor/OpeningHours/MWMOpeningHoursEditorViewController.mm index 1bc56653f5..33c395a8d0 100644 --- a/iphone/Maps/UI/Editor/OpeningHours/MWMOpeningHoursEditorViewController.mm +++ b/iphone/Maps/UI/Editor/OpeningHours/MWMOpeningHoursEditorViewController.mm @@ -128,6 +128,8 @@ extern NSDictionary * const kMWMOpeningHoursEditorTableCells = @{ - (void)fillCell:(MWMOpeningHoursTableViewCell * _Nonnull)cell atIndexPath:(NSIndexPath * _Nonnull)indexPath { + if (!self.parentViewController) + return; if (indexPath.section < self.model.count) [self.model fillCell:cell atIndexPath:indexPath]; else if ([cell isKindOfClass:[MWMOpeningHoursAddScheduleTableViewCell class]]) |