fixed exception handler
This commit is contained in:
parent
1f5ab19e50
commit
f2389b5404
|
@ -1590,7 +1590,7 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke
|
||||||
for (int i = pos; i >= 0; --i) {
|
for (int i = pos; i >= 0; --i) {
|
||||||
try {
|
try {
|
||||||
message = (Message) binding.messagesView.getItemAtPosition(i);
|
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
|
//should not happen if we synchronize properly. however if that fails we just gonna try item -1
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue