The evaluation of substring()
fails if the length is greater than the given string
#801
Labels
substring()
fails if the length is greater than the given string
#801
Describe the bug
If I invoke the substring() function with a length that is greater than the given string then the evaluation fails and reports a Java
StringIndexOutOfBoundsException
.To Reproduce
Steps to reproduce the behavior:
substring("abc", 1, 4)
Expected behavior
The function invocation should return the whole string if the length is greater than the string.
However, according to the DMN 1.5 specification, the function invocation should return
null
.However, returning
null
is not the most (business) user-friendly behavior. It could lead to complicated expressions, for example:Environment
1.17.4
8.4.0
The text was updated successfully, but these errors were encountered: