From 484abfd87423a9b6e4617ccfe08151bfe651a625 Mon Sep 17 00:00:00 2001 From: yunusemrekarakaya Date: Fri, 20 Jun 2025 13:32:03 +0300 Subject: [PATCH] [BUG] DTS2025060914714 Issue : https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/ICGQNX Signed-off-by: yunusemrekarakaya --- ets2panda/compiler/core/ETSCompiler.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ets2panda/compiler/core/ETSCompiler.cpp b/ets2panda/compiler/core/ETSCompiler.cpp index 09d7df240a..087893c39f 100644 --- a/ets2panda/compiler/core/ETSCompiler.cpp +++ b/ets2panda/compiler/core/ETSCompiler.cpp @@ -764,6 +764,9 @@ void ETSCompiler::Compile(const ir::Identifier *expr) const ETSGen *etsg = GetETSGen(); auto const *smartType = expr->TsType(); + if (smartType == nullptr) { + return; + } if (smartType->IsETSTypeParameter() || smartType->IsETSPartialTypeParameter() || smartType->IsETSNonNullishType()) { smartType = etsg->Checker()->GetApparentType(smartType); } -- Gitee