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

Commit 9d3aef18 authored by Patty Huang's avatar Patty Huang Committed by Automerger Merge Worker
Browse files

Merge "Fix null pointer dereference" am: e4253608

parents b7e75ab1 e4253608
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;
    }