From c4c57ed8c080615b104ae4aa1cb708614a0947c6 Mon Sep 17 00:00:00 2001 From: youbing54 Date: Tue, 24 Sep 2024 09:43:34 +0800 Subject: [PATCH 1/2] IssueNo: https://gitee.com/openharmony/arkui_ace_engine_lite/issues/IAT62F describe: bindedView is nullptr Feature or Bugfix: Bugfix Binary Source:Yes Signed-off-by: youbing54 --- frameworks/src/core/components/component.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/frameworks/src/core/components/component.cpp b/frameworks/src/core/components/component.cpp index b7c8bad5..bf7b67ba 100644 --- a/frameworks/src/core/components/component.cpp +++ b/frameworks/src/core/components/component.cpp @@ -1962,6 +1962,7 @@ jerry_value_t Component::HandleRotationRequest(const jerry_value_t func, UNUSED(func); UIView *bindedView = ComponentUtils::GetViewFromBindingObject(dom); if (bindedView == nullptr) { + HILOG_ERROR(HILOG_MODULE_ACE, "bindedView is nullptr"); return UNDEFINED; } -- Gitee From 116f608581d59261f02674480697893c19bf246e Mon Sep 17 00:00:00 2001 From: youbing54 Date: Tue, 24 Sep 2024 10:12:12 +0800 Subject: [PATCH 2/2] =?UTF-8?q?IssueNo:=20https://gitee.com/openharmony/ar?= =?UTF-8?q?kui=5Face=5Fengine=5Flite/issues/IAT66G=20describe:=20=E5=91=8A?= =?UTF-8?q?=E8=AD=A6=E4=BF=AE=E5=A4=8D:=20StringUtil::Copy=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E9=97=B4=E6=B7=BB=E5=8A=A0=E7=A9=BA=E8=A1=8C=20Featur?= =?UTF-8?q?e=20or=20Bugfix:=20Bugfix=20Binary=20Source:Yes=20Signed-off-by?= =?UTF-8?q?:=20youbing54?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frameworks/src/core/base/string_util.cpp | 2 ++ frameworks/src/core/components/component.cpp | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frameworks/src/core/base/string_util.cpp b/frameworks/src/core/base/string_util.cpp index 760b5bbd..f83362b1 100644 --- a/frameworks/src/core/base/string_util.cpp +++ b/frameworks/src/core/base/string_util.cpp @@ -40,6 +40,7 @@ char *StringUtil::Copy(const char *sequence) ace_free(buffer); return nullptr; } + char *StringUtil::Malloc(const uint32_t size) { char *buffer = static_cast(ace_malloc(size + 1)); @@ -49,6 +50,7 @@ char *StringUtil::Malloc(const uint32_t size) buffer[size] = '\0'; return buffer; } + char *StringUtil::Slice(const char *sequence, const int32_t start) { return StringUtil::Slice(sequence, start, strlen(sequence)); diff --git a/frameworks/src/core/components/component.cpp b/frameworks/src/core/components/component.cpp index bf7b67ba..b7c8bad5 100644 --- a/frameworks/src/core/components/component.cpp +++ b/frameworks/src/core/components/component.cpp @@ -1962,7 +1962,6 @@ jerry_value_t Component::HandleRotationRequest(const jerry_value_t func, UNUSED(func); UIView *bindedView = ComponentUtils::GetViewFromBindingObject(dom); if (bindedView == nullptr) { - HILOG_ERROR(HILOG_MODULE_ACE, "bindedView is nullptr"); return UNDEFINED; } -- Gitee