Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 01c0e997 authored by Eric Fischer's avatar Eric Fischer Committed by Android (Google) Code Review
Browse files

Merge "Keep Rfc822Tokenizer from crashing when the string ends with a backslash."

parents 9f564858 a877c034
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -84,7 +84,7 @@ public class Rfc822Tokenizer implements MultiAutoCompleteTextView.Tokenizer {
                    if (c == '"') {
                        i++;
                        break;
                    } else if (c == '\\') {
                    } else if (c == '\\' && i + 1 < cursor) {
                        name.append(text.charAt(i + 1));
                        i += 2;
                    } else {
@@ -110,7 +110,7 @@ public class Rfc822Tokenizer implements MultiAutoCompleteTextView.Tokenizer {
                        comment.append(c);
                        level++;
                        i++;
                    } else if (c == '\\') {
                    } else if (c == '\\' && i + 1 < cursor) {
                        comment.append(text.charAt(i + 1));
                        i += 2;
                    } else {