From ee24ef2b8029880bd7c7974172b863542e189b90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E4=BA=AE?= Date: Sat, 8 Oct 2022 19:36:43 +0800 Subject: [PATCH] =?UTF-8?q?IssueNo:=20#I5UIZV=20Description:=20hap?= =?UTF-8?q?=E8=A7=A3=E5=8E=8B=E5=A4=B1=E8=B4=A5=E5=AF=BC=E8=87=B4=E5=B4=A9?= =?UTF-8?q?=E6=BA=83=20Sig:=20SIG=5FApplicationFramework=20Feature=20or=20?= =?UTF-8?q?Bugfix:=20Bugfix=20Binary=20Source:=20No?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 杨亮 Change-Id: Id6f313bd26bdab330ed3efa00823ad33de1bba14 --- frameworks/native/runtime/js_runtime.cpp | 2 +- frameworks/native/runtime/utils/src/runtime_extractor.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/native/runtime/js_runtime.cpp b/frameworks/native/runtime/js_runtime.cpp index 2059ad09d0..5e5702c549 100644 --- a/frameworks/native/runtime/js_runtime.cpp +++ b/frameworks/native/runtime/js_runtime.cpp @@ -551,7 +551,7 @@ void JsRuntime::Deinitialize() auto uvLoop = nativeEngine_->GetUVLoop(); auto fd = uvLoop != nullptr ? uv_backend_fd(uvLoop) : -1; - if (fd >= 0) { + if (fd >= 0 && eventHandler_ != nullptr) { eventHandler_->RemoveFileDescriptorListener(fd); } RemoveTask(TIMER_TASK); diff --git a/frameworks/native/runtime/utils/src/runtime_extractor.cpp b/frameworks/native/runtime/utils/src/runtime_extractor.cpp index db37588813..432d116e0e 100644 --- a/frameworks/native/runtime/utils/src/runtime_extractor.cpp +++ b/frameworks/native/runtime/utils/src/runtime_extractor.cpp @@ -60,7 +60,7 @@ std::shared_ptr RuntimeExtractor::Create(const std::string& ha } std::shared_ptr runtimeExtractor = std::make_shared(loadPath); if (!runtimeExtractor->Init()) { - HILOG_ERROR("RuntimeExtractor create failed"); + HILOG_ERROR("RuntimeExtractor create failed for %{public}s", loadPath.c_str()); return nullptr; }