Issues

 

For-in loop throws NullPointerException when located within finally block

Description

The for-in loop throws a NullPointerException when it is located within the finally-block. You can reproduce this with either of the following:

Details

Assignee

Reporter

Priority

Labels

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Created 25 March 2021 at 15:41
Updated 17 April 2023 at 06:18

Activity

Pothys - MitrahSoft26 March 2021 at 10:27

I've checked this ticket and confirmed the issue happened on lucee latest version 5.3.8.162-SNAPSHOT also. Using for-loop inside the try/finally block throws an NPE. Seems ACF works fine. I added a testcase for this ticket

Pull Request: https://github.com/lucee/Lucee/pull/1252

Here is the stacktrace