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

Commit c030973b authored by Jack He's avatar Jack He Committed by Android (Google) Code Review
Browse files

Merge "Add a nullptr check." into tm-dev

parents fa1155b8 5c270bc5
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -114,6 +114,11 @@ static void l2c_csm_indicate_connection_open(tL2C_CCB* p_ccb) {
 *
 ******************************************************************************/
void l2c_csm_execute(tL2C_CCB* p_ccb, tL2CEVT event, void* p_data) {
  if (p_ccb == nullptr) {
    LOG_WARN("CCB is null for event (%d)", event);
    return;
  }

  if (!l2cu_is_ccb_active(p_ccb)) {
    LOG_WARN("CCB not in use, event (%d) cannot be processed", event);
    return;