Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

out variables with empty loop #748

Open
brig opened this issue Apr 30, 2023 · 1 comment
Open

out variables with empty loop #748

brig opened this issue Apr 30, 2023 · 1 comment

Comments

@brig
Copy link
Contributor

brig commented Apr 30, 2023

simple example:

flows:
  default:
    - call: test
      out: myVar
      loop:
        items: []

    - log: ${myVar}

  test:
    - log: "in test"
    - set:
        myVar: "${item}"
14:13:04.171 [main] (concord.yml): Error @ line: 8, col: 7. Can't find the specified variable in '${myVar}'. Check if it is defined in the current scope. Details: ELResolver cannot handle a null base Object with identifier 'myVar'

little bit unexpected for me, what do you think?

@brig brig changed the title out variables for empty loop out variables with empty loop Apr 30, 2023
@ibodrov
Copy link
Collaborator

ibodrov commented Feb 28, 2024

👍 on returning an empty list there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants