* [iOS] set pageName is empty string if it is null
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/0c85353c Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/0c85353c Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/0c85353c Branch: refs/heads/master Commit: 0c85353cc78be16c34b313bccb3bac77d3144360 Parents: 3a53b79 Author: acton393 <[email protected]> Authored: Fri Dec 29 15:10:05 2017 +0800 Committer: acton393 <[email protected]> Committed: Fri Dec 29 15:10:05 2017 +0800 ---------------------------------------------------------------------- ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/0c85353c/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m ---------------------------------------------------------------------- diff --git a/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m b/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m index e205208..71ee423 100644 --- a/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m +++ b/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m @@ -498,7 +498,7 @@ _Pragma("clang diagnostic pop") \ { NSString * bundleType = nil; WXSDKInstance * instance = [WXSDKManager instanceForID:instanceIdString]; - NSURLComponents * urlComponent = [NSURLComponents componentsWithString:instance.pageName]; + NSURLComponents * urlComponent = [NSURLComponents componentsWithString:instance.pageName?:@""]; if (@available(iOS 8.0, *)) { for (NSURLQueryItem * queryItem in urlComponent.queryItems) { if ([queryItem.name isEqualToString:@"bundleType"] && [@[@"vue", @"rax"] containsObject:queryItem.value]) {
