mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 05:34:51 +00:00
Added failsafe
This commit is contained in:
parent
ede1c4c817
commit
d40e9e259c
1 changed files with 8 additions and 0 deletions
|
@ -5631,6 +5631,14 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
|
||||
@Override
|
||||
public void onBindViewHolder(@NonNull ViewHolder holder, int position) {
|
||||
try {
|
||||
_onBindViewHolder(holder, position);
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
}
|
||||
|
||||
private void _onBindViewHolder(@NonNull ViewHolder holder, int position) {
|
||||
TupleMessageEx message = differ.getItem(position);
|
||||
|
||||
if (message == null || context == null)
|
||||
|
|
Loading…
Reference in a new issue