Fix empty name crash when fetching first alpha recipient row.
This commit is contained in:
parent
0017b7af26
commit
cb4a45fea3
1 changed files with 1 additions and 1 deletions
|
@ -233,7 +233,7 @@ class ContactSearchPagedDataSource(
|
|||
cursor.moveToPosition(-1)
|
||||
while (cursor.moveToNext()) {
|
||||
val sortName = cursor.getString(cursor.getColumnIndexOrThrow(ContactRepository.NAME_COLUMN))
|
||||
if (!sortName.first().isDigit()) {
|
||||
if (sortName.isNotEmpty() && !sortName.first().isDigit()) {
|
||||
return cursor.position
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue