diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index cdcf20d718..828948c68b 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -3172,7 +3172,7 @@ public class AdapterMessage extends RecyclerView.Adapter 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);