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

Commit e4253608 authored by Patty Huang's avatar Patty Huang Committed by Gerrit Code Review
Browse files

Merge "Fix null pointer dereference"

parents 0a410458 7aa494b2
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;
    }