Prevent crash

pull/157/head
M66B 6 years ago
parent f6d730405d
commit d4d93f63f0

@ -3290,7 +3290,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
holder.unwire();
TupleMessageEx message = differ.getItem(position);
if (message == null)
if (message == null || context == null)
holder.clear();
else {
holder.bindTo(message);

Loading…
Cancel
Save