summaryrefslogtreecommitdiff
path: root/platform/ios/src/MGLMapView.mm
diff options
context:
space:
mode:
Diffstat (limited to 'platform/ios/src/MGLMapView.mm')
-rw-r--r--platform/ios/src/MGLMapView.mm9
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;
}