Skip to content

Commit

Permalink
fix(core): fix TDF_BASE_DCHECK crash
Browse files Browse the repository at this point in the history
(cherry picked from commit bf089f0)
  • Loading branch information
churchill-zhang authored and zoomchan-cxj committed Jan 18, 2022
1 parent 88fa2cd commit b489fbf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion android/sdk/src/main/jni/src/bridge/js2java.cc
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ void CallJava(hippy::napi::CBDataTuple *data) {
std::shared_ptr<hippy::napi::V8CtxValue> obj =
std::make_shared<hippy::napi::V8CtxValue>(isolate, info[3]);
unicode_string_view json;
TDF_BASE_DCHECK(v8_ctx->GetValueJson(obj, &json));
auto flag = v8_ctx->GetValueJson(obj, &json);
TDF_BASE_DCHECK(flag);
TDF_BASE_DLOG(INFO) << "CallJava json = " << json;
buffer_data = StringViewUtils::ToU8StdStr(json);
}
Expand Down

0 comments on commit b489fbf

Please sign in to comment.