Skip to content

Commit

Permalink
Fix possible npe warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Chumva committed May 9, 2024
1 parent f405953 commit 256b594
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OsmAnd/src/net/osmand/plus/track/helpers/GpxDbHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 256b594

Please sign in to comment.