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

Commit 7aa494b2 authored by Patty Huang's avatar Patty Huang
Browse files

Fix null pointer dereference

Bug: 270762164
Test: atest bluetooth_le_audio_test bluetooth_le_audio_client_test
Change-Id: I97e3bb06e2c9e677de5456a5359db950075a81d4
parent 17b967b0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -481,7 +481,7 @@ class LeAudioGroupStateMachineImpl : public LeAudioGroupStateMachine {
    auto ase = leAudioDevice->GetFirstActiveAseByDataPathState(
        AudioStreamDataPathState::CIS_ESTABLISHED);

    if (ase->cis_conn_hdl != conn_handle) {
    if (!ase || ase->cis_conn_hdl != conn_handle) {
      LOG(ERROR) << __func__ << " Cannot find ase by handle " << +conn_handle;
      return;
    }