From 24103182e74822dac43d22b11a189fa83846741d Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Wed, 26 Feb 2020 17:08:09 +0200 Subject: [PATCH] Fix possible npe (cherry picked from commit 5c5c1e3af83a720fcc428d8dfbb7e27e00172b3e) --- OsmAnd/src/net/osmand/plus/FavouritesDbHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;