Fix possible NPE in debug mode
Change-Id: I55776110a489621c99e9a3bf58daa6fcaf415cb3main
parent
3458d61807
commit
51075d145a
|
@ -438,10 +438,12 @@ public class AndroidSpellCheckerService extends SpellCheckerService {
|
|||
Log.i(TAG, "IsInDict = " + isInDict);
|
||||
Log.i(TAG, "LooksLikeTypo = " + (!isInDict));
|
||||
Log.i(TAG, "HasLikelySuggestions = " + result.mHasLikelySuggestions);
|
||||
if (null != result.mSuggestions) {
|
||||
for (String suggestion : result.mSuggestions) {
|
||||
Log.i(TAG, suggestion);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: actually use result.mHasLikelySuggestions
|
||||
final int flags =
|
||||
|
|
Loading…
Reference in New Issue