NPE in FTPService with connection timeout when stoponerror is false

Description

The following code will throw a null pointer exception if stopOnError is false.

Here is the error. I think the code may be trying to get connection details without regard for the possibility that the connection failed.

Environment

None

Activity

Show:

Pothys - MitrahSoft 30 November 2022 at 11:10

I've checked this ticket with the lucee versions 5.4.0.7-SNAPSHOT and 6.0.0.301-SNAPSHOT. Now FTPService with stoponerror=false and secure=true didn't throw a NullPointerException and the issue was solved.

Pothys - MitrahSoft 30 November 2022 at 09:54

Zac Spitzer 30 November 2022 at 09:33

Pothys - MitrahSoft 12 September 2022 at 10:28

I've checked this ticket and confirmed the issue happened on the lucee latest version 5.3.10.67-SNAPSHOT. When using FTPService with stoponerror=false and secure=true throws a NullPointerException and without secure=true in FTPService didn't throw NPE.

Fixed

Details

Assignee

Reporter

Priority

Fix versions

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 9 September 2022 at 19:18
Updated 30 November 2022 at 11:10
Resolved 30 November 2022 at 11:10