mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 04:28:35 +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)
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user