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

Commit 51db8c94 authored by Yiyi Shen's avatar Yiyi Shen
Browse files

Add nullability check to fix crash

Fix: 356294390
Test: atets
Flag: EXEMPT bug fix
Change-Id: I681281f1672aeed15052389454c2931b4e66d4cc
parent 22a39312
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -864,7 +864,7 @@ public class BluetoothUtils {
        if (localBtManager == null) return null;
        LocalBluetoothLeBroadcast broadcast =
                localBtManager.getProfileManager().getLeAudioBroadcastProfile();
        if (!broadcast.isEnabled(null)) return null;
        if (broadcast == null || !broadcast.isEnabled(null)) return null;
        int primaryGroupId = getPrimaryGroupIdForBroadcast(contentResolver);
        if (primaryGroupId == BluetoothCsipSetCoordinator.GROUP_ID_INVALID) return null;
        LocalBluetoothLeBroadcastAssistant assistant =