[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/release
Commit: 5cb82d5dd8fb8d239bf8c31d0ebb09ca239e3d49
Parents: 482f144
Author: Xiaomin <[email protected]>
Authored: Mon Jun 11 21:29:17 2018 +0800
Committer: Adam Feng <[email protected]>
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"]) {

Reply via email to