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

Commit 5f948110 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "PBAP: Check column value isn't null when query contacts"

parents be67537e 0c0ae253
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -429,7 +429,12 @@ class BluetoothPbapUtils {
        int indexData = c.getColumnIndex(Data.DATA1);
        int indexMimeType = c.getColumnIndex(Data.MIMETYPE);
        String contactId, data, mimeType;

        while (c.moveToNext()) {
            if (c.isNull(indexCId)) {
                Log.w(TAG, "_id column is null. Row was deleted during iteration, skipping");
                continue;
            }
            contactId = c.getString(indexCId);
            data = c.getString(indexData);
            mimeType = c.getString(indexMimeType);