Merge "Fix NPE"

main
Ken Wakasa 2011-02-14 20:24:09 -08:00 committed by Android (Google) Code Review
commit 0e71cb1fff
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ public class UserDictionary extends ExpandableDictionary {
private void addWords(Cursor cursor) {
clearDictionary();
if (cursor == null) return;
final int maxWordLength = getMaxWordLength();
if (cursor.moveToFirst()) {
final int indexWord = cursor.getColumnIndex(Words.WORD);