From 42c3d270292d856f466ad90a53153eae996b7b60 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Fri, 25 May 2018 10:14:45 +0200 Subject: [PATCH] Fix crash --- .../explore/travelcards/TravelDownloadUpdateCard.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/wikivoyage/explore/travelcards/TravelDownloadUpdateCard.java b/OsmAnd/src/net/osmand/plus/wikivoyage/explore/travelcards/TravelDownloadUpdateCard.java index 78afb435c6..9a3f67781b 100644 --- a/OsmAnd/src/net/osmand/plus/wikivoyage/explore/travelcards/TravelDownloadUpdateCard.java +++ b/OsmAnd/src/net/osmand/plus/wikivoyage/explore/travelcards/TravelDownloadUpdateCard.java @@ -84,9 +84,11 @@ public class TravelDownloadUpdateCard extends BaseTravelCard { } public void updateProgresBar() { - DownloadUpdateVH holder = ref.get(); - if (holder != null && holder.itemView.isShown()) { - updateProgressBar(holder); + if(ref != null) { + DownloadUpdateVH holder = ref.get(); + if (holder != null && holder.itemView.isShown()) { + updateProgressBar(holder); + } } }