mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
Do not crash when get_calls null
This commit is contained in:
parent
43c0fd0751
commit
2d0072236d
1 changed files with 4 additions and 1 deletions
|
|
@ -2104,7 +2104,10 @@ static int comp_call_id(const LinphoneCall *call, const char *callid) {
|
|||
}
|
||||
|
||||
- (LinphoneCall *)callByCallId:(NSString *)call_id {
|
||||
const bctbx_list_t *calls = linphone_core_get_calls(LC);
|
||||
const bctbx_list_t *calls = linphone_core_get_calls(theLinphoneCore);
|
||||
if (!calls) {
|
||||
return NULL;
|
||||
}
|
||||
bctbx_list_t *call_tmp = bctbx_list_find_custom(calls, (bctbx_compare_func)comp_call_id, [call_id UTF8String]);
|
||||
if (!call_tmp) {
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue