[ 
https://issues.apache.org/jira/browse/JEXL-433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Henri Biestro resolved JEXL-433.
--------------------------------
    Resolution: Fixed

Commit 
[ae3b1cbe|https://github.com/apache/commons-jexl/commit/ae3b1cbe611229bb402f46b09a85858c3a8d2bb2]

> Debugger does not accept empty return statement
> -----------------------------------------------
>
>                 Key: JEXL-433
>                 URL: https://issues.apache.org/jira/browse/JEXL-433
>             Project: Commons JEXL
>          Issue Type: Bug
>    Affects Versions: 3.4.0
>            Reporter: Vincent Bussol
>            Assignee: Henri Biestro
>            Priority: Major
>             Fix For: 3.4.1
>
>
> A NullPointerException is thrown when using the Debugger with an empty return 
> statement.
> {code:java}
> JexlEngine jexl = new JexlBuilder().create();
> final String src = "let condition = true; if (condition) { return; }";
> final JexlScript script = jexl.createScript(src);
> assertNotNull(script);
> Object result = script.execute(null);
> assertNull(result);
> Debugger debugger = new Debugger();
> assertTrue(debugger.debug(script)); {code}
> {code:java}
> java.lang.NullPointerException: Cannot load from object array because 
> "this.children" is null
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to