From a1978094ad3f59f3f025a932a0b7492937193bd2 Mon Sep 17 00:00:00 2001 From: Julian Rex Date: Thu, 15 Nov 2018 17:19:36 -0500 Subject: Reverted check for _mbglMap. --- platform/ios/src/MGLMapView.mm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'platform/ios/src/MGLMapView.mm') diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm index 7b4c9f2eb3..dfbfc7f09a 100644 --- a/platform/ios/src/MGLMapView.mm +++ b/platform/ios/src/MGLMapView.mm @@ -381,8 +381,9 @@ public: - (nonnull NSURL *)styleURL { - if (self.terminated) + if (!_mbglMap) { + NSAssert(self.terminated, @"_mbglMap should only be unavailable during app termination"); return self.residualStyleURL; } @@ -2377,8 +2378,9 @@ public: - (MGLMapDebugMaskOptions)debugMask { - if (self.terminated) + if (!_mbglMap) { + NSAssert(self.terminated, @"_mbglMap should only be unavailable during app termination"); return self.residualDebugMask; } @@ -3437,8 +3439,9 @@ public: - (MGLMapCamera *)camera { - if (self.terminated) + if (!_mbglMap) { + NSAssert(self.terminated, @"_mbglMap should only be unavailable during app termination"); return self.residualCamera; } -- cgit v1.2.1