mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Fix NPE"
This commit is contained in:
commit
0e71cb1fff
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user