diff --git a/src/utils.h b/src/utils.h index 9e1bfc4340ef660936c3829dd60486b5fa73141e..75a7c7ba87f51da0614b5bce200bf7aae50846c6 100755 --- a/src/utils.h +++ b/src/utils.h @@ -45,6 +45,7 @@ static inline NSString* bestIDForConversation(const lrc::api::conversation::Info } } catch (std::out_of_range& e) { NSLog(@"bestIDForConversation: getContact - out of range"); + return @""; } } @@ -96,6 +97,7 @@ static inline NSString* bestNameForConversation(const lrc::api::conversation::In return @(alias.c_str()); } catch (std::out_of_range& e) { NSLog(@"bestNameForConversation: getContact - out of range"); + return @""; } }