sipaccount: check nullptr

Change-Id: I8c899f31e29bc7a50989afc69518accbf2935428
This commit is contained in:
Sébastien Blin
2022-10-27 12:07:35 -04:00
committed by Adrien Béraud
parent d5eaf363c8
commit 610e969780

View File

@ -1214,7 +1214,8 @@ SIPAccount::sendUnregister()
if (pjsip_regc_set_transport(regc, &tp_sel) != PJ_SUCCESS)
throw VoipLinkException("Unable to set transport");
setUpTransmissionData(tdata, tp_sel.u.transport->key.type);
if (tp_sel.u.transport)
setUpTransmissionData(tdata, tp_sel.u.transport->key.type);
pj_status_t status;
if ((status = pjsip_regc_send(regc, tdata)) != PJ_SUCCESS) {