Handle non-existing variables and context entries gracefully #674
Labels
scope: Camunda 8
Required in the context of Camunda 8
target:8.3
Planned for the Camunda 8.3 release
type: bug
Describe the bug
If I access a non-existing variable then the expression fails. To avoid failure, I must do a null check first.
The behavior is the same for path expressions. If I access a non-existing context entry, the expression fails.
Related to #540.
Related to #582.
To Reproduce
Steps to reproduce the behavior:
x
Expected behavior
The expression should return
null
if a variable or a context entry doesn't exist.If the path expression is applied to a filter and a context doesn't contain the entry, the resulting list should contain
null
for this item.The expected behavior is aligned with the DMN spec. It is verified by the TCK test cases:
Environment
1.16.0
The text was updated successfully, but these errors were encountered: