Merge "Bug 5218421: new NPE is SpellChecker when using Japanese language"
This commit is contained in:
committed by
Android (Google) Code Review
commit
4cbcc2bc06
@@ -112,6 +112,8 @@ public class SpellChecker implements SpellCheckerSessionListener {
|
|||||||
|
|
||||||
private void scheduleSpellCheck() {
|
private void scheduleSpellCheck() {
|
||||||
if (mLength == 0) return;
|
if (mLength == 0) return;
|
||||||
|
if (spellCheckerSession == null) return;
|
||||||
|
|
||||||
if (mChecker != null) {
|
if (mChecker != null) {
|
||||||
mTextView.removeCallbacks(mChecker);
|
mTextView.removeCallbacks(mChecker);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user