diff --git a/app/src/main/java/fr/gouv/etalab/mastodon/drawers/StatusListAdapter.java b/app/src/main/java/fr/gouv/etalab/mastodon/drawers/StatusListAdapter.java index f2ba19d8b..7f33ac551 100644 --- a/app/src/main/java/fr/gouv/etalab/mastodon/drawers/StatusListAdapter.java +++ b/app/src/main/java/fr/gouv/etalab/mastodon/drawers/StatusListAdapter.java @@ -762,7 +762,7 @@ public class StatusListAdapter extends BaseAdapter implements OnPostActionInterf String key = "__u" + String.valueOf(i) + "__"; String value = matcher.group(0); int end = matcher.end(); - if (spannableString.charAt(end) == '/') { + if (spannableString.length() > end && spannableString.charAt(end) == '/') { text = spannableString.toString().substring(0, end). concat(spannableString.toString().substring(end+1, spannableString.length())); }