diff --git a/OsmAnd/src/net/osmand/plus/FavouritesDbHelper.java b/OsmAnd/src/net/osmand/plus/FavouritesDbHelper.java index dea061b8ba..c3c74e4bc5 100644 --- a/OsmAnd/src/net/osmand/plus/FavouritesDbHelper.java +++ b/OsmAnd/src/net/osmand/plus/FavouritesDbHelper.java @@ -641,7 +641,7 @@ public class FavouritesDbHelper { @Nullable public FavoriteGroup getGroup(FavouritePoint p) { - if (flatGroups.containsKey(p.getCategory())) { + if (p != null && flatGroups.containsKey(p.getCategory())) { return flatGroups.get(p.getCategory()); } else { return null;