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

Commit 925c580f authored by Andreas Gampe's avatar Andreas Gampe
Browse files

Bluetooth: Fix incorrect map access

Found by Errorprone.

Bug: 73288226
Test: m javac-check-Bluetooth RUN_ERROR_PRONE=true
Change-Id: Icd0015746c4c0fc5e318dcf18afdaefbfe886ec4
parent 1a8911af
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();