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

This commit is contained in:
Schoumi 2017-08-23 15:23:21 +02:00
parent 415f2262b2
commit 3a205aa183
1 changed files with 2 additions and 0 deletions

View File

@ -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;