From b69c9825a7536d83e869fa47f0c74985ed209c7f Mon Sep 17 00:00:00 2001 From: fanzexuan Date: Tue, 2 Sep 2025 15:06:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8A=9F=E8=80=97=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: fanzexuan --- services/aams/src/accessible_ability_manager_service.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/aams/src/accessible_ability_manager_service.cpp b/services/aams/src/accessible_ability_manager_service.cpp index e0b2c546..fef12ec9 100644 --- a/services/aams/src/accessible_ability_manager_service.cpp +++ b/services/aams/src/accessible_ability_manager_service.cpp @@ -2395,7 +2395,10 @@ void AccessibleAbilityManagerService::FindInnerWindowId(const AccessibilityEvent // root -> node that send event, and it's a UiExtensionNode // when elementId is element that at the UiExtension tree, try to get the id of UiExtensionComponent // by GetRootParentId, - elementId = GetRootParentId(windowId, treeId, elementId); + ErrCode ret = GetRootParentId(windowId, treeId, elementId); + if (ret != ERR_OK) { + break; + } } else { // keep find its parent node, until it's a root node or find its elementId in sceneBoardElementIdMap_ // which saves mapping of windowId&root-elementId of the window. -- Gitee