archive icon indicating copy to clipboard operation
archive copied to clipboard

Zip encode with password creates a "Null check operator used on a null value"

Open tototo23 opened this issue 1 year ago • 0 comments

When using

ZipFileEncoder(password: .....).zipDirectory(directory, ...);

To zip a folderhaving subfolders, with a password, i have a Null exception. Following the exception, it reveals that it comes from zip_encoder:355 : output.writeBytes(salt!); having salt==null. This is called from _writeFile() line 261,where salt is not initialized in this context, when the current object is a Folder and not a File

tototo23 avatar Feb 02 '24 19:02 tototo23