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

Commit 38fea653 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Check null LeAudioService in processActiveDeviceChanged"

parents ec32b2e4 8543a437
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -540,6 +540,10 @@ class PhonePolicy {
                A2dpService a2dpService = mFactory.getA2dpService();
                HeadsetService hsService = mFactory.getHeadsetService();
                LeAudioService leAudioService = mFactory.getLeAudioService();
                if (leAudioService == null) {
                    debugLog("processActiveDeviceChanged: LeAudioService is null");
                    return;
                }
                List<BluetoothDevice> leAudioActiveGroupDevices =
                        leAudioService.getGroupDevices(leAudioService.getGroupId(device));