commit | b623198961ae5ba96c8253774da884c677caefef | [log] [tgz] |
---|---|---|
author | linghe.lh <linghe.lh@alibaba-inc.com> | Thu Oct 03 14:21:49 2019 +0800 |
committer | linghe.lh <linghe.lh@alibaba-inc.com> | Thu Oct 03 14:21:49 2019 +0800 |
tree | 39ba06360491b8cf421b5853ad407aa5a297070d | |
parent | 111ce44f601512437e1fd4d2bffbfaef5d27328f [diff] | |
parent | be912769d7c9ba45556f416074e3e42819cf3108 [diff] |
Merge branch feature/fix-npeofjson into release/20190925 Title: Fix eagle refresh instance Npe Link: https://code.aone.alibaba-inc.com/weex/weex/codereview/1919679
diff --git a/weex_core/Source/core/bridge/platform/core_side_in_platform.cpp b/weex_core/Source/core/bridge/platform/core_side_in_platform.cpp index 34d1e49..710ce35 100644 --- a/weex_core/Source/core/bridge/platform/core_side_in_platform.cpp +++ b/weex_core/Source/core/bridge/platform/core_side_in_platform.cpp
@@ -388,10 +388,9 @@ }} } }; - - 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);