diff --git a/AsyncDisplayKit/ASMapNode.mm b/AsyncDisplayKit/ASMapNode.mm index ab85e4acd3..e7ec4cab2b 100644 --- a/AsyncDisplayKit/ASMapNode.mm +++ b/AsyncDisplayKit/ASMapNode.mm @@ -260,12 +260,10 @@ - (void)setAnnotations:(NSArray *)annotations { - if (annotations == nil) { - annotations = @[]; - } + annotations = [annotations copy] ?: @[]; ASDN::MutexLocker l(_propertyLock); - _annotations = [annotations copy]; + _annotations = annotations; if (self.isLiveMap) { [_mapView removeAnnotations:_mapView.annotations]; [_mapView addAnnotations:annotations];