Fix possible npe

This commit is contained in:
Vitaliy 2020-02-26 17:08:09 +02:00
parent b1624162bf
commit 5c5c1e3af8

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;