Fix crash

This commit is contained in:
Victor Shcherb 2018-05-25 10:14:45 +02:00
parent 59cc7ec7ad
commit 42c3d27029

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