diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuBuilder.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuBuilder.java index 89c884541f..d3207eb7c9 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuBuilder.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuBuilder.java @@ -436,7 +436,9 @@ public class MenuBuilder { if (cardList.size() == 0) { cards.add(new NoImagesCard(mapActivity)); } - onlinePhotoCardsRow.setCards(cards); + if (onlinePhotoCardsRow != null) { + onlinePhotoCardsRow.setCards(cards); + } onlinePhotoCards = cards; } }