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

List filter expression throws error if list is null #809

Open
jonathanlukas opened this issue Feb 15, 2024 · 1 comment
Open

List filter expression throws error if list is null #809

jonathanlukas opened this issue Feb 15, 2024 · 1 comment
Labels
scope: Camunda 8 Required in the context of Camunda 8 type: bug

Comments

@jonathanlukas
Copy link
Contributor

Describe the bug

If I try to filter a list that does not exist (is null), the expression will throw an error like:

failed to evaluate expression 'partner[item.nummer = "1"]': Expected list but found 'null'

Also, there are warnings that represent the same:

* [NO_VARIABLE_FOUND] No variable found with name 'partner'
* [INVALID_TYPE] Expected list but found 'null'

To Reproduce

  1. Use https://camunda.github.io/feel-scala/docs/playground/
  2. Set expression to: partner[item.nummer = "1"]
  3. Hit evaluate

Expected behavior

The result should be null, the warnings are fine

Environment

  • FEEL engine version: 1.17
  • Affects:
    • Camunda Connector Runtime 8.4.3
@saig0
Copy link
Member

saig0 commented Feb 20, 2024

@jonathanlukas thank you for reporting. 👍 I agree that the expression should return null instead.

@saig0 saig0 added the scope: Camunda 8 Required in the context of Camunda 8 label Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: Camunda 8 Required in the context of Camunda 8 type: bug
Projects
None yet
Development

No branches or pull requests

2 participants