From a587dd83321989b5331d593ea3edd4df30fee8f5 Mon Sep 17 00:00:00 2001 From: Fabian Guerra Date: Thu, 30 Mar 2017 16:01:07 -0400 Subject: [ios] assertion to check if an annotationTag > 0 --- platform/ios/src/MGLMapView.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/ios/src/MGLMapView.mm b/platform/ios/src/MGLMapView.mm index 6ce41d6fb4..e12d4467af 100644 --- a/platform/ios/src/MGLMapView.mm +++ b/platform/ios/src/MGLMapView.mm @@ -3044,6 +3044,7 @@ public: continue; } MGLAnnotationContext annotationContext = _annotationContextsByAnnotationTag.at(annotationTag); + NSAssert(_annotationContextsByAnnotationTag.count(annotationTag), @"Missing annotation for tag %u.", annotationTag); if (annotationContext.annotation) { [annotations addObject:annotationContext.annotation]; -- cgit v1.2.1