mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Add check for null contact name when setting up dictionary.
Bug 2021966
This commit is contained in:
parent
2bed1531c2
commit
e5c7f0981d
@ -90,6 +90,8 @@ public class ContactsDictionary extends ExpandableDictionary {
|
|||||||
if (cursor.moveToFirst()) {
|
if (cursor.moveToFirst()) {
|
||||||
while (!cursor.isAfterLast()) {
|
while (!cursor.isAfterLast()) {
|
||||||
String name = cursor.getString(INDEX_NAME);
|
String name = cursor.getString(INDEX_NAME);
|
||||||
|
|
||||||
|
if (name != null) {
|
||||||
int len = name.length();
|
int len = name.length();
|
||||||
|
|
||||||
// TODO: Better tokenization for non-Latin writing systems
|
// TODO: Better tokenization for non-Latin writing systems
|
||||||
@ -115,6 +117,7 @@ public class ContactsDictionary extends ExpandableDictionary {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
cursor.moveToNext();
|
cursor.moveToNext();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user