Details
Description
Exception NPE is thrown only when for-loop is inside def/function. Empty or more complex code in for-loop works, this bug appears only for simple code inside loop. Example:
def test() {
for(i = 0; i < 3; i++) {
// some code inside, assignment, log to console or so...
System.out.println('...');
}
}
// call function
test();
Code inside loop is executed once and then NPE is thrown, has something to do with ASTNode "null".