[ios] Fixed crash.

This commit is contained in:
Ilya Grechuhin 2016-08-18 11:43:32 +03:00
parent d959e2e8d8
commit 98b182ecbb

View file

@ -198,7 +198,7 @@ using namespace mwm;
{
NSInteger const section = indexPath.section;
NSInteger const row = indexPath.row;
if (self.downloadedCountries)
if (row < self.downloadedCountries.count)
return self.downloadedCountries[row];
NSString * index = self.indexes[section];
NSArray<NSString *> * availableCountries = self.availableCountries[index];