diff --git a/android/app/src/main/java/app/organicmaps/bookmarks/data/BookmarkManager.java b/android/app/src/main/java/app/organicmaps/bookmarks/data/BookmarkManager.java index b2e726578c..3945bb0276 100644 --- a/android/app/src/main/java/app/organicmaps/bookmarks/data/BookmarkManager.java +++ b/android/app/src/main/java/app/organicmaps/bookmarks/data/BookmarkManager.java @@ -439,7 +439,9 @@ public enum BookmarkManager if (filename == null) { filename = uri.getPath(); - int cut = filename.lastIndexOf('/'); + if (filename == null) + return null; + final int cut = filename.lastIndexOf('/'); if (cut != -1) filename = filename.substring(cut + 1); }