* commit 'c4f66d3233159ee224dd0b30dd117fe539af2be6': Fix an NPE
This commit is contained in:
commit
008b528cbd
1 changed files with 1 additions and 1 deletions
|
@ -2310,7 +2310,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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue