[ios] nil check in visibleAnnotationsInRect to avoid crash (#8513)

This commit is contained in:
Fabian Guerra Soto
2017-03-28 16:06:16 -04:00
committed by GitHub
parent 8c34a5081c
commit c5c69102c5

View File

@@ -3044,7 +3044,10 @@ public:
continue;
}
MGLAnnotationContext annotationContext = _annotationContextsByAnnotationTag.at(annotationTag);
[annotations addObject:annotationContext.annotation];
if (annotationContext.annotation)
{
[annotations addObject:annotationContext.annotation];
}
}
return [annotations copy];