Fix crash in linphone_core_report_call_log().

This commit is contained in:
Ghislain MARY 2018-02-13 10:31:01 +01:00
parent 66a6499f56
commit 2f39f845d5

View file

@ -917,7 +917,7 @@ void linphone_core_report_call_log(LinphoneCore *lc, LinphoneCallLog *call_log){
linphone_address_unref(conference_factory_addr);
}
const char *username = linphone_address_get_username(call_log->to);
if (strstr(username, "chatroom-") == username)
if (username && (strstr(username, "chatroom-") == username))
return;
// End of workaround