From 7f679035f44307e5bdc2b57f31c20045cae5f602 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Fri, 25 May 2018 10:11:17 +0200 Subject: [PATCH] Fix crash --- .../explore/travelcards/TravelNeededMapsCard.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/wikivoyage/explore/travelcards/TravelNeededMapsCard.java b/OsmAnd/src/net/osmand/plus/wikivoyage/explore/travelcards/TravelNeededMapsCard.java index 28636655bf..65a1562295 100644 --- a/OsmAnd/src/net/osmand/plus/wikivoyage/explore/travelcards/TravelNeededMapsCard.java +++ b/OsmAnd/src/net/osmand/plus/wikivoyage/explore/travelcards/TravelNeededMapsCard.java @@ -72,9 +72,11 @@ public class TravelNeededMapsCard extends BaseTravelCard { } public void updateView() { - NeededMapsVH holder = ref.get(); - if (holder != null && holder.itemView.isShown()) { - updateView(holder); + if (ref != null) { + NeededMapsVH holder = ref.get(); + if (holder != null && holder.itemView.isShown()) { + updateView(holder); + } } }