IssueNo: #I5UIZV

Description: hap解压失败导致崩溃
Sig: SIG_ApplicationFramework
Feature or Bugfix: Bugfix
Binary Source: No

Signed-off-by: 杨亮 <yangliang36@huawei.com>
Change-Id: Id6f313bd26bdab330ed3efa00823ad33de1bba14
This commit is contained in:
杨亮
2022-10-08 19:36:43 +08:00
parent 924bb86a17
commit ee24ef2b80
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);
@@ -60,7 +60,7 @@ std::shared_ptr<RuntimeExtractor> RuntimeExtractor::Create(const std::string& ha
}
std::shared_ptr<RuntimeExtractor> runtimeExtractor = std::make_shared<RuntimeExtractor>(loadPath);
if (!runtimeExtractor->Init()) {
HILOG_ERROR("RuntimeExtractor create failed");
HILOG_ERROR("RuntimeExtractor create failed for %{public}s", loadPath.c_str());
return nullptr;
}