[go: nahoru, domu]

Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[iOS] fix crash when platformBridge is nil on eagle
Browse files Browse the repository at this point in the history
  • Loading branch information
jianhan-he committed Apr 28, 2019
1 parent e1c1338 commit d55f169
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ios/sdk/WeexSDK/Sources/Model/WXSDKInstance.m
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ - (void)renderWithURL:(NSURL *)url options:(NSDictionary *)options data:(id)data
WXLogError(@"Url must be passed if you use renderWithURL");
return;
}
[WXCoreBridge install];

_scriptURL = url;
[self _checkPageName];
Expand All @@ -256,7 +257,8 @@ - (void)renderView:(id)source options:(NSDictionary *)options data:(id)data
{
_options = [options isKindOfClass:[NSDictionary class]] ? options : nil;
_jsData = data;

[WXCoreBridge install];

self.needValidate = [[WXHandlerFactory handlerForProtocol:@protocol(WXValidateProtocol)] needValidate:self.scriptURL];

if ([source isKindOfClass:[NSString class]]) {
Expand Down

0 comments on commit d55f169

Please sign in to comment.