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

Commit 45e0f3f4 authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

CsipSetCoordinator: Fix possible null pointer dereference

It could happen if there is a device nearby which is a part of the
coordinated set but in the UUID context which is not in any interest

Bug: 150670922
Tag: #feature
Sponsor: jpawlowski@
Test: Manual
Change-Id: Ia0094b8dcbad487a99e34708861fa5301ca37540
parent 1767bad7
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -592,6 +592,10 @@ public class CsipSetCoordinatorService extends ProfileService {
        }

        ParcelUuid uuid = mGroupIdToUuidMap.get(groupId);
        if (mCallbacks.get(uuid) == null) {
            Log.e(TAG, " There is no clients for uuid: " + uuid);
            return;
        }

        for (Map.Entry<Executor, IBluetoothCsipSetCoordinatorCallback> entry :
                mCallbacks.get(uuid).entrySet()) {