mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-28 00:20:50 +01:00
Prevent crash
This commit is contained in:
@@ -705,7 +705,7 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
||||
ContactsContract.Contacts.STARRED + " DESC" +
|
||||
", " + ContactsContract.Contacts.TIMES_CONTACTED + " DESC" +
|
||||
", " + ContactsContract.Contacts.LAST_TIME_CONTACTED + " DESC");
|
||||
while (cursor.moveToNext())
|
||||
while (cursor != null && cursor.moveToNext())
|
||||
try {
|
||||
long id = cursor.getLong(cursor.getColumnIndex(ContactsContract.RawContacts._ID));
|
||||
String name = cursor.getString(cursor.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));
|
||||
|
||||
Reference in New Issue
Block a user