From 91adf0217ab785b0349d5463453406700d61c5d0 Mon Sep 17 00:00:00 2001 From: tsatsulya Date: Fri, 18 Jul 2025 11:59:09 +0300 Subject: [PATCH] Codecheck fix Issue: https://gitee.com/openharmony/arkcompiler_runtime_core/issues/ICN2TT Signed-off-by: tsatsulya --- ets2panda/checker/ets/utilityTypeHandlers.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ets2panda/checker/ets/utilityTypeHandlers.cpp b/ets2panda/checker/ets/utilityTypeHandlers.cpp index 3bc3261558..973ded1928 100644 --- a/ets2panda/checker/ets/utilityTypeHandlers.cpp +++ b/ets2panda/checker/ets/utilityTypeHandlers.cpp @@ -543,6 +543,7 @@ static void SetupFunctionParams(ir::ScriptFunction *function, varbinder::Functio checker->ProgramAllocator()->Adapter()), checker->ProgramAllocator()); paramExpr->Ident()->SetTsTypeAnnotation(unionType); + ES2PANDA_ASSERT(unionType != nullptr); unionType->SetParent(paramExpr->Ident()); } auto [paramVar, node] = paramScope->AddParamDecl(checker->ProgramAllocator(), checker->VarBinder(), paramExpr); -- Gitee