From b33740d74eb4cee9107ab85e4b101debdd247931 Mon Sep 17 00:00:00 2001 From: Conny Duck Date: Thu, 30 Nov 2017 21:04:47 +0100 Subject: [PATCH] fix IndexOutOfBoundsException in ViewThreadFragment --- .../com/keylesspalace/tusky/fragment/ViewThreadFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/fragment/ViewThreadFragment.java b/app/src/main/java/com/keylesspalace/tusky/fragment/ViewThreadFragment.java index 80b0e0e6e..b2139cdeb 100644 --- a/app/src/main/java/com/keylesspalace/tusky/fragment/ViewThreadFragment.java +++ b/app/src/main/java/com/keylesspalace/tusky/fragment/ViewThreadFragment.java @@ -482,7 +482,7 @@ public class ViewThreadFragment extends SFragment implements private void showCard(Card card) { this.card = card; - if (statuses.size() != 0) { + if (statusIndex >= 0 && statusIndex < statuses.size()) { StatusViewData.Concrete newViewData = new StatusViewData.Builder(statuses.getPairedItem(statusIndex)) .setCard(card)