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

Commit 5f3f37ef authored by Ethan Chen's avatar Ethan Chen Committed by Abhisek Devkota
Browse files

Contacts: Null check local group query result

Change-Id: I1240c73362ea946b906ecb9ecd27a2bcb0b8e545
parent ada95b66
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -78,9 +78,11 @@ public class LocalGroupCountTask extends AsyncTask<Object, Object, Object> {
            groups = mContext.getContentResolver().query(LocalGroups.CONTENT_URI, new String[] {
                    GroupColumns._ID
            }, null, null, null);
            if (groups != null) {
                while (groups.moveToNext()) {
                    countMemebersById(updateList, groups.getLong(0));
                }
            }
        } finally {
            if (groups != null) {
                groups.close();