Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b1e05d66 authored by Ken Wakasa's avatar Ken Wakasa
Browse files

Fix NPE

bug: 3446590
Change-Id: Iea5bd8f63f3322496b5d68539f0215d5d01e68d1
parent 195e0f71
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);