Browse Source

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

tags/release-v3.0
Schoumi 2 years ago
parent
commit
3a205aa183
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      app/src/main/java/fr/mobdev/blooddonation/fragment/MapsFragment.java

+ 2
- 0
app/src/main/java/fr/mobdev/blooddonation/fragment/MapsFragment.java 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;

Loading…
Cancel
Save