fixed exception handler

This commit is contained in:
Daniel Gultsch 2018-04-07 09:40:09 +02:00
parent 1f5ab19e50
commit f2389b5404

View file

@ -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;
}