You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by cx...@apache.org on 2018/06/13 09:11:33 UTC
incubator-weex git commit: [WEEX-451][iOS] Fix a mistake about set
__weex_options__
Repository: incubator-weex
Updated Branches:
refs/heads/master 482f144d6 -> 5cb82d5dd
[WEEX-451][iOS] Fix a mistake about set __weex_options__
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/5cb82d5d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/5cb82d5d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/5cb82d5d
Branch: refs/heads/master
Commit: 5cb82d5dd8fb8d239bf8c31d0ebb09ca239e3d49
Parents: 482f144
Author: Xiaomin <ca...@yahoo.com>
Authored: Mon Jun 11 21:29:17 2018 +0800
Committer: Adam Feng <cx...@gmail.com>
Committed: Wed Jun 13 17:10:56 2018 +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/5cb82d5d/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 0c0fb86..e7243af 100644
--- a/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m
+++ b/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m
@@ -372,7 +372,7 @@ _Pragma("clang diagnostic pop") \
#ifdef DEBUG
WXLogDebug(@"flexLayout -> action: callNativeModule : %@ . %@",moduleName,methodName);
#endif
- NSMutableDictionary * newOptions = [options mutableCopy];
+ NSMutableDictionary * newOptions = options ? [options mutableCopy] : [NSMutableDictionary new];
NSMutableArray * newArguments = [arguments mutableCopy];
if ([WXSDKManager sharedInstance].multiContext && [instance.bundleType.lowercaseString isEqualToString:@"rax"]) {