Fix possible NPE in debug mode

Change-Id: I55776110a489621c99e9a3bf58daa6fcaf415cb3
main
Jean Chalard 2011-10-06 19:36:40 +09:00
parent 3458d61807
commit 51075d145a
1 changed files with 4 additions and 2 deletions

View File

@ -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 =