skip empty lines in message preview. prevents indexoutofbounds exception

This commit is contained in:
Daniel Gultsch 2016-12-23 21:19:11 +01:00
parent d03c431137
commit 28c64c2bd1
1 changed files with 3 additions and 0 deletions

View File

@ -201,6 +201,9 @@ public class UIHelper {
char first = l.charAt(0);
if (first != '>' && first != '\u00bb') {
String line = l.trim();
if (line.isEmpty()) {
continue;
}
char last = line.charAt(line.length()-1);
if (builder.length() != 0) {
builder.append(' ');