diff options
author | Sergey Yershov <syershov@maps.me> | 2019-06-11 16:54:43 +0300 |
---|---|---|
committer | Vlad Mihaylenko <vxmihaylenko@gmail.com> | 2019-06-11 17:43:48 +0300 |
commit | 191cc0b0f9336d8c4537e289cad055ea76f07401 (patch) | |
tree | bb208a74da732c6669956f4db9c0afcf78bbf8fe /platform | |
parent | f61d9e459f2bf83fb6dd00a7da504925e1dd3b15 (diff) |
[generator] Fix build with Xcode
Diffstat (limited to 'platform')
-rw-r--r-- | platform/http_user_agent_ios.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/http_user_agent_ios.mm b/platform/http_user_agent_ios.mm index 022b604b6c..db166c7147 100644 --- a/platform/http_user_agent_ios.mm +++ b/platform/http_user_agent_ios.mm @@ -7,6 +7,6 @@ namespace platform std::string HttpUserAgent::ExtractAppVersion() const { NSString * str = NSBundle.mainBundle.infoDictionary[@"CFBundleShortVersionString"]; - return std::string(str.UTF8String); + return str ? std::string(str.UTF8String) : std::string("Unknown"); } } // platform |