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

Commit 8790d0f5 authored by Qasim Javed's avatar Qasim Javed Committed by Automerger Merge Worker
Browse files

Merge "Add a nullptr check." am: 9b02f35f

parents 096e7808 9b02f35f
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;