Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9a25757 authored by Erik's avatar Erik Committed by Android (Google) Code Review
Browse files

Merge "b/5317367 Check if cursor is empty before reading"

parents 7e52b539 162b7e34
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -331,10 +331,11 @@ public class ContactSaveService extends IntentService {
                            new String[] {Contacts._ID, Contacts.LOOKUP_KEY},
                            null, null, null);
                    try {
                        c.moveToFirst();
                        if (c.moveToFirst()) {
                            final long contactId = c.getLong(0);
                            final String lookupKey = c.getString(1);
                            lookupUri = Contacts.getLookupUri(contactId, lookupKey);
                        }
                    } finally {
                        c.close();
                    }