concord icon indicating copy to clipboard operation
concord copied to clipboard

out variables with empty loop

Open brig opened this issue 2 years ago • 1 comments
trafficstars

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 avatar Apr 30 '23 12:04 brig

:+1: on returning an empty list there.

ibodrov avatar Feb 28 '24 00:02 ibodrov