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

Commit e9235ff6 authored by Andre Eisenbach's avatar Andre Eisenbach Committed by Matthew Xie
Browse files

LE: Add NULL check for GATT client callback

Change-Id: I1087102d8a740969fb0a98b409b58230a3236aeb
parent bd7958cf
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -729,7 +729,11 @@ void bta_gattc_close(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_DATA *p_data)
    if (p_data->hdr.event == BTA_GATTC_API_CLOSE_EVT)
        cb_data.close.status = GATT_Disconnect(p_data->hdr.layer_specific);

    if ((p_cback != NULL) && (*p_cback != NULL))
    {
        (*p_cback)(BTA_GATTC_CLOSE_EVT,(tBTA_GATTC *)&cb_data);
    }


    if (p_clreg->num_clcb == 0 && p_clreg->dereg_pending)
    {