Fix possible npe

(cherry picked from commit 5c5c1e3af8)
This commit is contained in:
Vitaliy 2020-02-26 17:08:09 +02:00
parent 783b023e75
commit 24103182e7

View file

@ -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;