Fix possible npe
This commit is contained in:
parent
b1624162bf
commit
5c5c1e3af8
1 changed files with 1 additions and 1 deletions
|
@ -641,7 +641,7 @@ public class FavouritesDbHelper {
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
public FavoriteGroup getGroup(FavouritePoint p) {
|
public FavoriteGroup getGroup(FavouritePoint p) {
|
||||||
if (flatGroups.containsKey(p.getCategory())) {
|
if (p != null && flatGroups.containsKey(p.getCategory())) {
|
||||||
return flatGroups.get(p.getCategory());
|
return flatGroups.get(p.getCategory());
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in a new issue