From 386b9ce5db2c40e342bfcdf8d62e0a6ff53f355d Mon Sep 17 00:00:00 2001 From: Alex Sytnyk Date: Mon, 6 Aug 2018 13:51:25 +0300 Subject: [PATCH] Fix possible NPE (cherry picked from commit 293c424) --- OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuBuilder.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuBuilder.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuBuilder.java index 182e345381..89c884541f 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuBuilder.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/MenuBuilder.java @@ -416,6 +416,9 @@ public class MenuBuilder { } private void startLoadingImages() { + if (onlinePhotoCardsRow == null) { + return; + } onlinePhotoCards = new ArrayList<>(); onlinePhotoCardsRow.setProgressCard(); execute(new GetImageCardsTask(mapActivity, getLatLon(), getAdditionalCardParams(),