Fix possible NPE

(cherry picked from commit 293c424)
This commit is contained in:
Alex Sytnyk 2018-08-06 13:51:25 +03:00
parent 2095f843be
commit 386b9ce5db

View file

@ -416,6 +416,9 @@ public class MenuBuilder {
} }
private void startLoadingImages() { private void startLoadingImages() {
if (onlinePhotoCardsRow == null) {
return;
}
onlinePhotoCards = new ArrayList<>(); onlinePhotoCards = new ArrayList<>();
onlinePhotoCardsRow.setProgressCard(); onlinePhotoCardsRow.setProgressCard();
execute(new GetImageCardsTask(mapActivity, getLatLon(), getAdditionalCardParams(), execute(new GetImageCardsTask(mapActivity, getLatLon(), getAdditionalCardParams(),