mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
d7ac4f486b
commit
838bb4a933
|
@ -3172,7 +3172,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|||
|
||||
TupleMessageEx getItemAtPosition(int pos) {
|
||||
PagedList<TupleMessageEx> list = getCurrentList();
|
||||
if (list != null && pos < list.size()) {
|
||||
if (list != null && pos >= 0 && pos < list.size()) {
|
||||
TupleMessageEx message = list.get(pos);
|
||||
Long key = (message == null ? null : message.id);
|
||||
Log.i("Item=" + key + " @Position=" + pos);
|
||||
|
|
Loading…
Reference in New Issue