diff options
author | Julian Rex <julian.rex@mapbox.com> | 2018-11-15 17:19:36 -0500 |
---|---|---|
committer | Julian Rex <julian.rex@mapbox.com> | 2018-11-20 10:15:59 -0500 |
commit | a1978094ad3f59f3f025a932a0b7492937193bd2 (patch) | |
tree | 4e5e4369d2a87c86bdebab69bbff97df7e70e79c | |
parent | 76ca360882fcdc1b5917af512520f48969992b2d (diff) | |
download | qtlocation-mapboxgl-a1978094ad3f59f3f025a932a0b7492937193bd2.tar.gz |
Reverted check for _mbglMap.
-rw-r--r-- | platform/ios/src/MGLMapView.mm | 9 |
1 files changed, 6 insertions, 3 deletions
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; } |