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

Commit 10c7b8a9 authored by Andreas Gampe's avatar Andreas Gampe
Browse files

ContextHub: Fix map access

Found by Errorprone.

Bug: 73288226
Test: m javac-check-services RUN_ERROR_PRONE=true
Change-Id: Ia546ded8e5cbdb3c1cf02192ea7b5fc2fdea920b
parent a69df717
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -198,7 +198,7 @@ import java.util.function.Consumer;
        ContextHubClientBroker broker = null;
        int id = mNextHostEndpointId;
        for (int i = 0; i <= MAX_CLIENT_ID; i++) {
            if (!mHostEndPointIdToClientMap.containsKey(id)) {
            if (!mHostEndPointIdToClientMap.containsKey((short)id)) {
                broker = new ContextHubClientBroker(
                        mContext, mContextHubProxy, this, contextHubId, (short)id, clientCallback);
                mHostEndPointIdToClientMap.put((short)id, broker);