[ios] nil check in visibleAnnotationsInRect to avoid crash (#8513)
This commit is contained in:
committed by
GitHub
parent
8c34a5081c
commit
c5c69102c5
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user