Commit a891fb25 authored by jehan's avatar jehan

fix crash when op->getDiversionAddress() return null

parent ad5143df
......@@ -1226,7 +1226,7 @@ LinphoneCallDir CallSession::getDirection () const {
const Address& CallSession::getDiversionAddress () const {
L_D();
if (d->op) {
if (d->op && d->op->getDiversionAddress()) {
char *addrStr = sal_address_as_string(d->op->getDiversionAddress());
d->diversionAddress = Address(addrStr);
bctbx_free(addrStr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment