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

Commit 822efdc7 authored by Sal Savage's avatar Sal Savage
Browse files

Return null when a handle is *not* valid

Tag: #stability
Bug: 184394824
Test: atest BluetoothInstrumentationTests
Change-Id: I0e546c036998cd347c5d2edd2e16f863bd7d2926
parent f93e35da
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -99,7 +99,7 @@ public class AvrcpCoverArtManager {
        }

        public String getHandleUuid(String handle) {
            if (isValidImageHandle(handle)) return null;
            if (!isValidImageHandle(handle)) return null;
            String newUuid = UUID.randomUUID().toString();
            String existingUuid = mUuids.putIfAbsent(handle, newUuid);
            if (existingUuid != null) return existingUuid;