From 7e85d1f5c16ae52354a8470b9e9e92eb79a0c6fd Mon Sep 17 00:00:00 2001 From: Dan Andrei Singeorzan Date: Tue, 18 Jun 2024 16:30:38 +0300 Subject: [PATCH] set flat at start of method --- .../Expressions/CompiledExpressionInvoker.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/UiPath.Workflow.Runtime/Expressions/CompiledExpressionInvoker.cs b/src/UiPath.Workflow.Runtime/Expressions/CompiledExpressionInvoker.cs index 6d15ab0f..dd5c90c3 100644 --- a/src/UiPath.Workflow.Runtime/Expressions/CompiledExpressionInvoker.cs +++ b/src/UiPath.Workflow.Runtime/Expressions/CompiledExpressionInvoker.cs @@ -212,6 +212,8 @@ private bool CanExecuteExpression(ICompiledExpressionRoot compiledExpressionRoot private void ProcessLocationReferences() { + _locationsInitialized = true; + Stack environments = new(); // // Build list of location by enumerating environments @@ -258,8 +260,6 @@ private void ProcessLocationReferences() CreateRequiredArguments(requiredLocationNames); } } - - _locationsInitialized = true; } private bool TryGetCompiledExpressionRootAtDesignTime(Activity expression, Activity target, out ICompiledExpressionRoot compiledExpressionRoot, out int exprId)