Fix possible NPE

This commit is contained in:
Alex Sytnyk 2018-08-06 15:57:50 +03:00
parent 293c42457d
commit cbf65291e3

View file

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