fix IndexOutOfBoundsException in ViewThreadFragment

This commit is contained in:
Conny Duck 2017-11-30 21:04:47 +01:00
parent 08d01e6046
commit b33740d74e
1 changed files with 1 additions and 1 deletions

View File

@ -482,7 +482,7 @@ public class ViewThreadFragment extends SFragment implements
private void showCard(Card card) { private void showCard(Card card) {
this.card = card; this.card = card;
if (statuses.size() != 0) { if (statusIndex >= 0 && statusIndex < statuses.size()) {
StatusViewData.Concrete newViewData = StatusViewData.Concrete newViewData =
new StatusViewData.Builder(statuses.getPairedItem(statusIndex)) new StatusViewData.Builder(statuses.getPairedItem(statusIndex))
.setCard(card) .setCard(card)