diff --git a/arkui/ace_ets_component_completion/ace_ets_component_wholeCompletion/src/main/ets/TestAbility/TestAbility.ets b/arkui/ace_ets_component_completion/ace_ets_component_wholeCompletion/src/main/ets/TestAbility/TestAbility.ets index 77f15258417e19c625f63e7e199a0e999c2f6061..22377188618ef24c23b26124d7d9d3c7a3459825 100644 --- a/arkui/ace_ets_component_completion/ace_ets_component_wholeCompletion/src/main/ets/TestAbility/TestAbility.ets +++ b/arkui/ace_ets_component_completion/ace_ets_component_wholeCompletion/src/main/ets/TestAbility/TestAbility.ets @@ -51,8 +51,11 @@ export default class TestAbility extends Ability { return; } windowClass = data; - - globalThis.uiContent = windowClass.getUIContext(); + try{ + globalThis.uiContent = windowClass.getUIContext(); + } catch(err){ + console.info("windowClass getUIContext is error" + JSON.stringify(err)) + } console.info('Succeeded in obtaining the main window. Data: ' + JSON.stringify(data)); }); }