Fix idx if idx == -1 or >= markerList size

master
Schoumi 6 years ago
parent 415f2262b2
commit 3a205aa183

@ -373,6 +373,8 @@ public class MapsFragment extends Fragment implements OnMapReadyCallback {
int idx = markerList.indexOfValue(marker);
if(idx < 0 || idx >= markerList.size())
return false;
long id = markerList.keyAt(idx);
selectedSite = id;
BloodSite infoSite = null;

Loading…
Cancel
Save