forked from mirrors/linphone-iphone
do not crash on empty subject
This commit is contained in:
parent
e071b5fdec
commit
03310c038e
2 changed files with 2 additions and 2 deletions
|
|
@ -61,7 +61,7 @@ static const CGFloat NOTIFIED_CELL_HEIGHT = 44;
|
|||
NSString *eventString;
|
||||
switch (linphone_event_log_get_type(event)) {
|
||||
case LinphoneEventLogTypeConferenceSubjectChanged: {
|
||||
NSString *subject = [NSString stringWithUTF8String:linphone_event_log_get_subject(event)];
|
||||
NSString *subject = [NSString stringWithUTF8String:linphone_event_log_get_subject(event) ?: LINPHONE_DUMMY_SUBJECT];
|
||||
NSString *formatedString = [NSString stringWithFormat:@"Chat room subject has changed to : %@", subject];
|
||||
eventString = NSLocalizedString(formatedString, nil);
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 94a51d3ec1b7dd69fd595e1eab50fda72c33dbda
|
||||
Subproject commit d7bc4b66ac414e6b6b5c0cd30bedcbcde4a9c05b
|
||||
Loading…
Add table
Reference in a new issue