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

Commit aaf8fe2d authored by Andreas Gampe's avatar Andreas Gampe
Browse files

Bluetooth: Fix incorrect map access

Found by Errorprone.

(cherry picked from commit 8e7eeed907b0d147565f7460a2497209a7a423e4)

Bug: 73288226
Test: m javac-check-Bluetooth RUN_ERROR_PRONE=true
Merged-In: Icd0015746c4c0fc5e318dcf18afdaefbfe886ec4
Change-Id: Icd0015746c4c0fc5e318dcf18afdaefbfe886ec4
parent d14cdb38
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -135,7 +135,7 @@ public class MapClientService extends ProfileService {
        if (DBG) {
            Log.d(TAG, "Statemachine exists for a device in unexpected state: " + state);
        }
        mMapInstanceMap.remove(mapStateMachine);
        mMapInstanceMap.remove(device);
        addDeviceToMapAndConnect(device);
        if (DBG) {
            StringBuilder sb = new StringBuilder();