mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-22 16:50:04 +02:00
Fix issue #54 - Crash with index
This commit is contained in:
parent
de80c5b914
commit
b6f8dbf1ce
1 changed files with 2 additions and 2 deletions
|
@ -184,8 +184,8 @@ public class SpannableHelper {
|
|||
if (matchEnd > content.toString().length()) {
|
||||
matchEnd = content.toString().length();
|
||||
}
|
||||
if (content.toString().length() > matchEnd) {
|
||||
matchEnd = content.toString().length();
|
||||
if (content.toString().length() > matchEnd || matchStart < 0) {
|
||||
continue;
|
||||
}
|
||||
final String url = content.toString().substring(matchStart, matchEnd);
|
||||
String newURL = Helper.transformURL(context, url);
|
||||
|
|
Loading…
Reference in a new issue