https://issues.apache.org/jira/browse/COCOON-1978
this pure JEXL code:
// mistaken variable name
String jexlExp = "fuu";
org.apache.commons.jexl.Expression expression =
ExpressionFactory.createExpression(jexlExp);
// Create a context and add data
JexlContext jc = JexlHelper.createContext();
jc.getVars().put("foo", new Foo() );
// Now evaluate the expression, getting the result
Object o = expression.evaluate(jc);
System.out.println( o );
actually produces "null" when no foo variable is found in context
instead of throwing. JEXL javadoc does not show any direct method to
change this behaviour. Is there anything we can do?
--
Leszek Gawron http://www.mobilebox.pl/krs.html
CTO at MobileBox Ltd.