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

Commit

Permalink
[fix] fix npe in core_side_platform refresh an eagle instance
Browse files Browse the repository at this point in the history
  • Loading branch information
hpop1994 committed Oct 15, 2019
1 parent 51c8d12 commit 70b2e9c
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,11 @@ int CoreSideInPlatform::RefreshInstance(
args->value.string = genWeexString(
reinterpret_cast<const uint16_t*>(utf16_key.c_str()), utf16_key.size());
msg.push_back(args);

WeexCore::WeexCoreManager::Instance()->script_bridge()->script_side()->ExecJS(
ScriptBridge* bridge = WeexCore::WeexCoreManager::Instance()->script_bridge();
if (!bridge){
return false;
}
bridge->script_side()->ExecJS(
instanceId, "", "callJS", msg);
freeParams(msg);
return true;
Expand Down

0 comments on commit 70b2e9c

Please sign in to comment.