fix IndexOutOfBoundsException in ViewThreadFragment
This commit is contained in:
parent
08d01e6046
commit
b33740d74e
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue