AbstractInstalledLocalContainer will cause a NullPointerException if a simple file name is used as the "output" file

Description

AbstractInstalledLocalContainer's createJavaTask method attempts to ensure that all the correct folders exist before creating the output file. It does this by calling outputFile.getParentFile().mkdirs() without first ensuring that outputFile.getParentFile() is not null.

To work around this, the value of outputFile.getParentFile() should be checked, or outputFile.getAbsoluteFile().getParentFile().mkdirs() should be used (since the absolute file must have a parent).

Patch attached.

Assignee

Unassigned

Reporter

Christopher Rued

Components

Fix versions

Affects versions

Priority

Minor
Configure