Commit 14d74d75 authored by Ronan's avatar Ronan

fix(call): avoid crash in sal_op_set_and_clean_contact_address

parent f755d8be
......@@ -5020,7 +5020,7 @@ void linphone_call_set_contact_op(LinphoneCall* call) {
contact=get_fixed_contact(call->core,call,call->dest_proxy);
sal_op_set_and_clean_contact_address(
call->op,
(SalAddress *)L_GET_PRIVATE_FROM_C_STRUCT(contact, Address)->getInternalAddress()
contact ? (SalAddress *)L_GET_PRIVATE_FROM_C_STRUCT(contact, Address)->getInternalAddress() : nullptr
);
}
......
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