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

Commit b9521160 authored by Hall Liu's avatar Hall Liu Committed by android-build-merger
Browse files

Merge "Add null check"

am: 54396339

Change-Id: I23f5f904124d748d7ae097567c012694b76d9bd0
parents 141de3b2 54396339
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -186,6 +186,10 @@ public class BluetoothDeviceManager {
        synchronized (mLock) {
            LinkedHashMap<String, BluetoothDevice> targetDeviceMap;
            if (isHearingAid) {
                if (mBluetoothHearingAidService == null) {
                    Log.w(this, "Hearing aid service null when receiving device added broadcast");
                    return;
                }
                long hiSyncId = mBluetoothHearingAidService.getHiSyncId(device);
                mHearingAidDeviceSyncIds.put(device, hiSyncId);
                targetDeviceMap = mHearingAidDevicesByAddress;