Merge "Fix possible NPE in debug mode"

This commit is contained in:
Jean Chalard 2011-10-06 03:44:24 -07:00 committed by Android (Google) Code Review
commit 3d36cdcd2d

View file

@ -443,10 +443,12 @@ public class AndroidSpellCheckerService extends SpellCheckerService {
Log.i(TAG, "IsInDict = " + isInDict); Log.i(TAG, "IsInDict = " + isInDict);
Log.i(TAG, "LooksLikeTypo = " + (!isInDict)); Log.i(TAG, "LooksLikeTypo = " + (!isInDict));
Log.i(TAG, "HasLikelySuggestions = " + result.mHasLikelySuggestions); Log.i(TAG, "HasLikelySuggestions = " + result.mHasLikelySuggestions);
if (null != result.mSuggestions) {
for (String suggestion : result.mSuggestions) { for (String suggestion : result.mSuggestions) {
Log.i(TAG, suggestion); Log.i(TAG, suggestion);
} }
} }
}
// TODO: actually use result.mHasLikelySuggestions // TODO: actually use result.mHasLikelySuggestions
final int flags = final int flags =