brendan-duncan / archive

Dart library to encode and decode various archive and compression formats, such as Zip, Tar, GZip, ZLib, and BZip2.
MIT License
400 stars 140 forks source link

zipDirectory - when ZipFileEncoder is initialized with a password and there are subdirectories in the input directory => Null check operator used on a null value #312

Closed hrmoh closed 8 months ago

hrmoh commented 8 months ago

Consider the following code:

var encoder = ZipFileEncoder(password: 'password');
encoder.zipDirectory(inputDir);

If there exist some directories inside inputDir, zipDirectory fails with the following execption: Null check operator used on a null value .