diff --git a/OsmAnd/src/net/osmand/plus/track/helpers/GpxDbHelper.java b/OsmAnd/src/net/osmand/plus/track/helpers/GpxDbHelper.java index 4090e0bf2cc..efc78585ee4 100644 --- a/OsmAnd/src/net/osmand/plus/track/helpers/GpxDbHelper.java +++ b/OsmAnd/src/net/osmand/plus/track/helpers/GpxDbHelper.java @@ -66,8 +66,8 @@ public void loadGpxItems() { items.forEach(item -> { File file = item.getFile(); - if (fileExistenceMap.get(file)) { - dataItems.put(file, item); // putToCache + if (Boolean.TRUE.equals(fileExistenceMap.get(file))) { + dataItems.put(file, item); } else { remove(file); }