mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 12:38:33 +00:00
Fix empty name crash when fetching first alpha recipient row.
This commit is contained in:
@@ -233,7 +233,7 @@ class ContactSearchPagedDataSource(
|
|||||||
cursor.moveToPosition(-1)
|
cursor.moveToPosition(-1)
|
||||||
while (cursor.moveToNext()) {
|
while (cursor.moveToNext()) {
|
||||||
val sortName = cursor.getString(cursor.getColumnIndexOrThrow(ContactRepository.NAME_COLUMN))
|
val sortName = cursor.getString(cursor.getColumnIndexOrThrow(ContactRepository.NAME_COLUMN))
|
||||||
if (!sortName.first().isDigit()) {
|
if (sortName.isNotEmpty() && !sortName.first().isDigit()) {
|
||||||
return cursor.position
|
return cursor.position
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user