Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Grechuhin <i.grechuhin@gmail.com>2017-08-23 16:31:31 +0300
committerRoman Kuznetsov <r.kuznetsow@gmail.com>2017-08-23 18:21:47 +0300
commit2c46fb18161544be6739df0acf0a269898136c4b (patch)
treecebf52189eaf7c42012f48551446f35c5872d38a
parentc947e17404697b5532c17f11b5a9b83bfe4b504d (diff)
[MAPSME-5411] [ios] FABRIC-7250 crash fix.beta-974
https://fabric.io/mapsme/ios/apps/com.mapswithme.full/issues/58eb70c70aeb16625b7c3b1f
-rw-r--r--iphone/Maps/UI/PlacePage/MWMPlacePageManager.mm12
1 files changed, 6 insertions, 6 deletions
diff --git a/iphone/Maps/UI/PlacePage/MWMPlacePageManager.mm b/iphone/Maps/UI/PlacePage/MWMPlacePageManager.mm
index 2e5c74925c..4aeba657bd 100644
--- a/iphone/Maps/UI/PlacePage/MWMPlacePageManager.mm
+++ b/iphone/Maps/UI/PlacePage/MWMPlacePageManager.mm
@@ -188,18 +188,18 @@ void logSponsoredEvent(MWMPlacePageData * data, NSString * eventName)
- (void)processCountryEvent:(TCountryId const &)countryId
{
- if (countryId == kInvalidCountryId)
+ auto data = self.data;
+ if (!data || data.countryId != countryId)
+ return;
+
+ if (data.countryId == kInvalidCountryId)
{
[self.layout processDownloaderEventWithStatus:storage::NodeStatus::Undefined progress:0];
return;
}
- auto data = self.data;
- if (!data || data.countryId != countryId)
- return;
-
NodeStatuses statuses;
- GetFramework().GetStorage().GetNodeStatuses(countryId, statuses);
+ GetFramework().GetStorage().GetNodeStatuses(data.countryId, statuses);
auto const status = statuses.m_status;
if (status == self.currentDownloaderStatus)