Object reference not set to an instance of an object

Aug 9, 2010 at 3:47 PM
Edited Aug 9, 2010 at 4:13 PM
When using the encryption method of PKZipWeak and I supply an empty password, the exception in the topic is thrown. Did I miss something here? The code I wrote is almost equal to this (I left out the try/catch block and some FileInfo code): using(ZipFile zip = new ZipFile(zippedFilePath)) { zip.Password = password; zip.Encryption = EncryptionAlgorithm.PkzipWeak; zip.AddFile(sourceFilePath, "\\"); zip.Save(); } Forgot to mention: Version 1.9.1.5
Coordinator
Aug 12, 2010 at 4:16 PM

Sounds like a bug.  If you could post the code in a more readable format, and also post the complete exception stack trace, that would be helpful in figuring out just what is happening.