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

Commit d9b0714a authored by Jakub Tyszkowski's avatar Jakub Tyszkowski
Browse files

le_audio: Fix possible null reference access

Bug: 150670922
Tag: #feature
Test: atest BluetoothInstrumentationTests
Sponsor: jpawlowski@
Change-Id: I17dd9b250992d4e663b53be11d7160467c5a6cd0
parent 3a4272f5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -713,7 +713,7 @@ public class LeAudioService extends ProfileService {
                if (mActiveAudioInDevice.isConnected()) {
                    device = mActiveAudioInDevice;
                }
            } else {
            } else if (previousGroupId != LE_AUDIO_GROUP_ID_INVALID) {
                /* Mark old group as no active */
                LeAudioGroupDescriptor descriptor = mGroupDescriptors.get(previousGroupId);
                descriptor.mIsActive = false;