diff options
author | Jakub Pawlowski <jpawlowski@google.com> | 2022-03-04 22:54:15 +0100 |
---|---|---|
committer | Jakub Pawłowski <jpawlowski@google.com> | 2022-03-04 22:46:58 +0000 |
commit | 7ca8bddda4acc4360a39780d0e8e12085258d426 (patch) | |
tree | ccdf97d3fd877fc0301753064d0a2dc819029e45 /framework/java/android/bluetooth/BluetoothHapClient.java | |
parent | 4024c5ee498844e674eb2982fb7fb713912e94e6 (diff) |
Do not return null as active device
getActiveDevices can return at most one device for A2DP. Some places
would check just the count, not the value, and treat null as active
device causing crashes later in code.
Bug: 222743223
Test: play music using LE Audio, ensure no crashes in A2DP code
Change-Id: I48d8e43945e75de0a230a61d09dd6e9f3a734772
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothHapClient.java')
0 files changed, 0 insertions, 0 deletions