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

Commit 70b2e9c

Browse files
committed
[fix] fix npe in core_side_platform refresh an eagle instance
1 parent 51c8d12 commit 70b2e9c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

weex_core/Source/core/bridge/platform/core_side_in_platform.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,11 @@ int CoreSideInPlatform::RefreshInstance(
395395
args->value.string = genWeexString(
396396
reinterpret_cast<const uint16_t*>(utf16_key.c_str()), utf16_key.size());
397397
msg.push_back(args);
398-
399-
WeexCore::WeexCoreManager::Instance()->script_bridge()->script_side()->ExecJS(
398+
ScriptBridge* bridge = WeexCore::WeexCoreManager::Instance()->script_bridge();
399+
if (!bridge){
400+
return false;
401+
}
402+
bridge->script_side()->ExecJS(
400403
instanceId, "", "callJS", msg);
401404
freeParams(msg);
402405
return true;

0 commit comments

Comments
 (0)