am e46d1292: Fix NPE in LatinIME.addToUserHistoryDictionary()
* commit 'e46d12927ee2717788248b05f00b751beaf2a02a': Fix NPE in LatinIME.addToUserHistoryDictionary()main
commit
1f6e2faa33
|
@ -2001,6 +2001,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||||
|
|
||||||
private CharSequence addToUserHistoryDictionary(final CharSequence suggestion) {
|
private CharSequence addToUserHistoryDictionary(final CharSequence suggestion) {
|
||||||
if (TextUtils.isEmpty(suggestion)) return null;
|
if (TextUtils.isEmpty(suggestion)) return null;
|
||||||
|
if (mSuggest == null) return null;
|
||||||
|
|
||||||
// If correction is not enabled, we don't add words to the user history dictionary.
|
// If correction is not enabled, we don't add words to the user history dictionary.
|
||||||
// That's to avoid unintended additions in some sensitive fields, or fields that
|
// That's to avoid unintended additions in some sensitive fields, or fields that
|
||||||
|
|
Loading…
Reference in New Issue