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

Commit a7a244bc authored by David Duarte's avatar David Duarte
Browse files

Revert "LeAudioService: Fix possible NullPointerException"

This reverts commit 942b2b5e.

Reason for revert: Not needed according to b/279219354

Bug: 279219354
Change-Id: Iaebb14232f78230044b994e5b5da729f4126952c
parent 942b2b5e
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -3036,10 +3036,6 @@ public class LeAudioService extends ProfileService {
     * @return the lead device of the CSIP group or {@code null} if the group does not exist
     */
    public BluetoothDevice getLeadDevice(BluetoothDevice device) {
        if (device == null) {
            Log.w(TAG, "getLeadDevice called with null device.");
            return null;
        }
        int groupId = getGroupId(device);
        if (groupId == LE_AUDIO_GROUP_ID_INVALID) {
            return null;