From f2389b5404460f6fd98dd5f2987568fa208d19ab Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Sat, 7 Apr 2018 09:40:09 +0200 Subject: [PATCH] fixed exception handler --- .../java/eu/siacs/conversations/ui/ConversationFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java index 0c097d368..861411eed 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java +++ b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java @@ -1590,7 +1590,7 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke for (int i = pos; i >= 0; --i) { try { message = (Message) binding.messagesView.getItemAtPosition(i); - } catch (ArrayIndexOutOfBoundsException e) { + } catch (IndexOutOfBoundsException e) { //should not happen if we synchronize properly. however if that fails we just gonna try item -1 continue; }