Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.1
-
None
Description
When using the Array-Expression like [x, y, z] a NPE occurs when one of the array elements is null.
Example:
import org.apache.commons.jexl2.Expression;
import org.apache.commons.jexl2.JexlEngine;
import org.apache.commons.jexl2.MapContext;
public class JexlArithmeticBug {
public static void main(String[] args)
}
As one can see in the Stacktrace, JexlArithmetic.narrowArrayType doesn't expect null values at all.