summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorJustin R. Miller <incanus@codesorcery.net>2015-03-22 10:45:47 -0700
committerJustin R. Miller <incanus@codesorcery.net>2015-03-22 10:45:47 -0700
commit8b21104eba0aea267c03c5a49c8709f9cb103646 (patch)
treeafeffe2ff15d83a4b4f2abd44fabca167982e68a /platform
parentfbd90ff48a861e06562263b211a69181263bb449 (diff)
downloadqtlocation-mapboxgl-8b21104eba0aea267c03c5a49c8709f9cb103646.tar.gz
more safe return when no selection
Diffstat (limited to 'platform')
-rw-r--r--platform/ios/MGLMapView.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/ios/MGLMapView.mm b/platform/ios/MGLMapView.mm
index 2608e4a00f..8593e9da5c 100644
--- a/platform/ios/MGLMapView.mm
+++ b/platform/ios/MGLMapView.mm
@@ -1652,7 +1652,7 @@ CLLocationCoordinate2D latLngToCoordinate(mbgl::LatLng latLng)
- (NSArray *)selectedAnnotations
{
- return @[ self.selectedAnnotation ];
+ return (self.selectedAnnotation ? @[ self.selectedAnnotation ] : @[]);
}
- (void)setSelectedAnnotations:(NSArray *)selectedAnnotations