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

Commit 7e8d46f2 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "OPP: Check uri string before parse it" am: e847fb55

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Bluetooth/+/1428989

Change-Id: I41817ce219820fca0fdf4c5fb1c926b4ed63ba3e
parents c653e8c4 e847fb55
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -847,8 +847,10 @@ public class BluetoothOppService extends ProfileService implements IObexConnecti

        info.mId = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare._ID));
        if (info.mUri != null) {
            info.mUri =
                    Uri.parse(stringFromCursor(info.mUri.toString(), cursor, BluetoothShare.URI));
            String uriString = stringFromCursor(info.mUri.toString(), cursor, BluetoothShare.URI);
            if (uriString != null) {
                info.mUri = Uri.parse(uriString);
            }
        } else {
            Log.w(TAG, "updateShare() called for ID " + info.mId + " with null URI");
        }