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

Commit

Permalink
Fix eagle refresh instance Npe
Browse files Browse the repository at this point in the history
  • Loading branch information
东煜 committed Oct 2, 2019
1 parent 111ce44 commit be91276
Showing 1 changed file with 3 additions and 4 deletions.
Expand Up @@ -388,10 +388,9 @@ int CoreSideInPlatform::RefreshInstance(
}}
}
};

auto final_json_str = final_json.dump().c_str();
auto utf16_key = weex::base::to_utf16(const_cast<char*>(final_json_str),
strlen(final_json_str));
std::string out = final_json.dump();
auto utf16_key = weex::base::to_utf16(const_cast<char*>(out.c_str()),
out.length());
args->value.string = genWeexString(
reinterpret_cast<const uint16_t*>(utf16_key.c_str()), utf16_key.size());
msg.push_back(args);
Expand Down

0 comments on commit be91276

Please sign in to comment.