diff --git a/OsmAnd/src/net/osmand/plus/GpxSelectionHelper.java b/OsmAnd/src/net/osmand/plus/GpxSelectionHelper.java index 658ff787bf..8d58729628 100644 --- a/OsmAnd/src/net/osmand/plus/GpxSelectionHelper.java +++ b/OsmAnd/src/net/osmand/plus/GpxSelectionHelper.java @@ -276,7 +276,7 @@ public class GpxSelectionHelper { String load = app.getSettings().SELECTED_GPX.get(); if(!Algorithms.isEmpty(load)) { try { - JSONArray ar = new JSONArray("load"); + JSONArray ar = new JSONArray(load); for(int i = 0; i < ar.length(); i++) { JSONObject obj = ar.getJSONObject(i); if(obj.has(FILE)) {