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

View file

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