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

Commit 6c034901 authored by Jean Chalard's avatar Jean Chalard
Browse files

Fix an NPE

Bug: 6538761
Change-Id: Id85486ee93437cfec7db421d5c7f2d7980a7e32e
parent 37f81cd6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2299,7 +2299,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
            final InputConnection ic = getCurrentInputConnection();
            if (null != ic) {
                final CharSequence lastChar = ic.getTextBeforeCursor(1, 0);
                if (lastChar.length() > 0 && Character.isHighSurrogate(lastChar.charAt(0))) {
                if (!TextUtils.isEmpty(lastChar) && Character.isHighSurrogate(lastChar.charAt(0))) {
                    ic.deleteSurroundingText(1, 0);
                }
            }