Skip to content
Snippets Groups Projects
Commit 51075d14 authored by Jean Chalard's avatar Jean Chalard
Browse files

Fix possible NPE in debug mode

Change-Id: I55776110a489621c99e9a3bf58daa6fcaf415cb3
parent 3458d618
No related branches found
No related tags found
No related merge requests found
...@@ -438,8 +438,10 @@ public class AndroidSpellCheckerService extends SpellCheckerService { ...@@ -438,8 +438,10 @@ 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);
for (String suggestion : result.mSuggestions) { if (null != result.mSuggestions) {
Log.i(TAG, suggestion); for (String suggestion : result.mSuggestions) {
Log.i(TAG, suggestion);
}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment