out of bounds guard
1 files changed, 2 insertions(+), 0 deletions(-) M src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java
M src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java => src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java +2 -0
@@ 641,6 641,8 @@ public class MessageAdapter extends ArrayAdapter<Message> { for (final android.text.style.QuoteSpan quote : body.getSpans(0, body.length(), android.text.style.QuoteSpan.class)) { int start = body.getSpanStart(quote); int end = body.getSpanEnd(quote); if (start < 0 || end < 0) continue; body.removeSpan(quote); applyQuoteSpan(viewHolder.messageBody, body, start, end, bubbleColor, true); if (start == 0) {