Skip to content

Creating archive in the working directory causes NullPointerException #94

Closed
@plamentotev

Description

@plamentotev

The following will cause NullPointerException:

archiver.setDestFile( new File( "archive.zip" ) );

That is because setDestFile tries to create the parent directory:

        if ( destFile != null )
        {
            destFile.getParentFile().mkdirs();
        }

but in the case shown above destFile.getParentFile() returns null.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions