Fix crash

This commit is contained in:
Victor Shcherb 2018-05-25 10:14:45 +02:00
parent 7f679035f4
commit 3c73aaa5dc

View file

@ -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);
}
}
}