Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

[ios] Crash fix on render with view-backed annotations #8513

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion platform/ios/src/MGLMapView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -3044,7 +3044,10 @@ - (void)removeStyleClass:(NSString *)styleClass
continue;
}
MGLAnnotationContext annotationContext = _annotationContextsByAnnotationTag.at(annotationTag);
[annotations addObject:annotationContext.annotation];
if (annotationContext.annotation)
{
[annotations addObject:annotationContext.annotation];
}
}

return [annotations copy];
Expand Down