diff --git a/OsmAnd/src/net/osmand/plus/views/GPXLayer.java b/OsmAnd/src/net/osmand/plus/views/GPXLayer.java index fd8717e424..ed5201b7bd 100644 --- a/OsmAnd/src/net/osmand/plus/views/GPXLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/GPXLayer.java @@ -544,7 +544,8 @@ public class GPXLayer extends OsmandMapLayer implements ContextMenuLayer.IContex int r = getDefaultRadiusPoi(tb); int ex = (int) point.x; int ey = (int) point.y; - for (SelectedGpxFile g : selectedGpxHelper.getSelectedGPXFiles()) { + List selectedGpxFiles = new ArrayList<>(selectedGpxHelper.getSelectedGPXFiles()); + for (SelectedGpxFile g : selectedGpxFiles) { List pts = getListStarPoints(g); // int fcolor = g.getColor() == 0 ? clr : g.getColor(); for (WptPt n : pts) {