iOS:fix crash when source is nil
This commit is contained in:
parent
f7f378f988
commit
b1cd69437a
@ -188,7 +188,7 @@ - (NSString *)packageModuleScript:(NSString *)moduleName content:(NSString *)con
|
||||
|
||||
- (void)prepareContext:(NSString *)contextId script:(NSString *)script source:(NSString *)source {
|
||||
[self.jsExecutor loadJSScript:[self packageContextScript:contextId content:script]
|
||||
source:[@"Context://" stringByAppendingString:source]];
|
||||
source:[@"Context://" stringByAppendingString:source ?: contextId]];
|
||||
}
|
||||
|
||||
- (void)destroyContext:(NSString *)contextId {
|
||||
|
Reference in New Issue
Block a user