Optimization

This commit is contained in:
M66B 2021-02-04 18:52:14 +01:00
parent e880938b54
commit db4000081f
1 changed files with 5 additions and 2 deletions

View File

@ -718,9 +718,12 @@ public class MessageHelper {
flowed.add(sb.toString());
int i = 0;
while (i < sb.length() &&
(sb.charAt(i) == '>' || sb.charAt(i) == ' '))
if (sb.length() > 0 && sb.charAt(0) == '>') {
i++;
while (i < sb.length() &&
(sb.charAt(i) == '>' || sb.charAt(i) == ' '))
i++;
}
String prefix = sb.substring(0, i).trim();
sb = new StringBuilder(prefix);