Commit 3a205aa1 authored by Schoumi's avatar Schoumi

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

parent 415f2262
Pipeline #64 passed with stage
in 20 seconds
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment