[cherry] [MAPSME-6996] [ios] Fixed crash in opening hours editor.

This commit is contained in:
Ilya Grechuhin 2018-03-05 15:59:40 +03:00 committed by Roman Kuznetsov
parent 86a8ef0d8f
commit aa56d9b95c

View file

@ -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]])