forked from mirrors/linphone-iphone
fix crash onPresenceChanged
This commit is contained in:
parent
48d2d48c3d
commit
15d1a39c03
1 changed files with 3 additions and 0 deletions
|
|
@ -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];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue