Closed yesamer closed 4 months ago
Closes https://github.com/apache/incubator-kie-issues/issues/1246
The NPE is thrown because of ´expression.getTypeRef().toString().toLowerCase()`, in such a case the typeRef is null
Considering that:
The typeRef is an optional parameter in the tExpression
typeRef
tExpression
the in and return variables are passing a constant for creating the error message (here) and (here)
in
return
To fix the issue it's enough to pass the constants that represent the variable name (variableIterator)
variableIterator
@gitgabrio @baldimir Do you have any idea how I can effectively test this change?
After:
Before:
Closes https://github.com/apache/incubator-kie-issues/issues/1246
The NPE is thrown because of ´expression.getTypeRef().toString().toLowerCase()`, in such a case the typeRef is null
Considering that:
The
typeRef
is an optional parameter in thetExpression
the
in
andreturn
variables are passing a constant for creating the error message (here) and (here)To fix the issue it's enough to pass the constants that represent the variable name (
variableIterator
)@gitgabrio @baldimir Do you have any idea how I can effectively test this change?
After:
Before: