From 98032b10d318a499b2510963cf2c0617c35ddfd3 Mon Sep 17 00:00:00 2001 From: Caoruihong Date: Sun, 28 Apr 2024 22:14:27 +0800 Subject: [PATCH] fix: add guard for GetAllFrameChildren in FrameProxy Signed-off-by: Caoruihong --- frameworks/core/components_ng/base/frame_node.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/frameworks/core/components_ng/base/frame_node.cpp b/frameworks/core/components_ng/base/frame_node.cpp index 6cafb9cc50c..75aa2cff4e6 100644 --- a/frameworks/core/components_ng/base/frame_node.cpp +++ b/frameworks/core/components_ng/base/frame_node.cpp @@ -177,6 +177,7 @@ public: if (allFrameNodeChildren_.empty()) { Build(); uint32_t count = 0; + auto guard = GetGuard(); for (const auto& child : children_) { AddFrameNode(child.node, allFrameNodeChildren_, partFrameNodeChildren_, count); } -- Gitee