diff options
author | Justin R. Miller <incanus@codesorcery.net> | 2015-03-22 10:45:47 -0700 |
---|---|---|
committer | Justin R. Miller <incanus@codesorcery.net> | 2015-03-22 10:45:47 -0700 |
commit | 8b21104eba0aea267c03c5a49c8709f9cb103646 (patch) | |
tree | afeffe2ff15d83a4b4f2abd44fabca167982e68a /platform | |
parent | fbd90ff48a861e06562263b211a69181263bb449 (diff) | |
download | qtlocation-mapboxgl-8b21104eba0aea267c03c5a49c8709f9cb103646.tar.gz |
more safe return when no selection
Diffstat (limited to 'platform')
-rw-r--r-- | platform/ios/MGLMapView.mm | 2 |
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 |