Fix possible NPE

(cherry picked from commit cbf6529)
This commit is contained in:
Alex Sytnyk 2018-08-06 15:57:50 +03:00
parent 386b9ce5db
commit 965d60aadb

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