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

Commit 6507424a authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Revert "LeAudioService: Fix possible NullPointerException"" into main

parents c341f08e a7a244bc
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -3085,10 +3085,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;