Fix possible NPE

This commit is contained in:
Alex Sytnyk 2018-08-06 13:51:25 +03:00
parent 5fc82dbe1f
commit 293c42457d

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(),