fix crash onPresenceChanged

This commit is contained in:
Danmei Chen 2020-05-18 17:16:36 +02:00
parent 48d2d48c3d
commit 15d1a39c03

View file

@ -602,6 +602,9 @@
if (displayName == nil) return;
const LinphonePresenceModel *m = [[k.userInfo valueForKey:@"presence_model"] pointerValue];
if (!linphone_presence_model_get_contact(m)) {
return;
}
NSString *contact = [NSString stringWithUTF8String:linphone_presence_model_get_contact(m)];
NSString *sipAddr = [FastAddressBook normalizeSipURI:contact];