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

Commit 8543a437 authored by William Escande's avatar William Escande
Browse files

Check null LeAudioService in processActiveDeviceChanged

Test: Build + th
Fix: 277244997
Change-Id: If28fcae5867605dea0502593a22201350759e769
parent 45dd4839
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));