Fix crash

This commit is contained in:
Victor Shcherb 2018-05-25 10:11:17 +02:00
parent 0762c6cf63
commit 7f679035f4

View file

@ -72,9 +72,11 @@ public class TravelNeededMapsCard extends BaseTravelCard {
} }
public void updateView() { public void updateView() {
NeededMapsVH holder = ref.get(); if (ref != null) {
if (holder != null && holder.itemView.isShown()) { NeededMapsVH holder = ref.get();
updateView(holder); if (holder != null && holder.itemView.isShown()) {
updateView(holder);
}
} }
} }