You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling zipFile.addStream(inputStream, zipParameters) calls zipEngine.addStreamToZip(...) which creates a ZipOutputStream which is a DeflaterOutputStream that has a Deflate member. This Deflate member should be closed using the end() method which is never called.
The text was updated successfully, but these errors were encountered:
This has issue has also been found on 1.3.2 and 1.3.3 on createZipFileFromFolder(...), addFolder(...), addFiles(....)
Stack trace from 1.3.3 with Strict mode enable with detectLeakedClosableObjects() turned on:
E/StrictMode: A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
java.lang.Throwable: Explicit termination method 'end' not called
at dalvik.system.CloseGuard.open(CloseGuard.java:223)
at java.util.zip.Deflater.(Deflater.java:173)
at java.util.zip.Deflater.(Deflater.java:190)
at net.lingala.zip4j.io.DeflaterOutputStream.(DeflaterOutputStream.java:38)
at net.lingala.zip4j.io.ZipOutputStream.(ZipOutputStream.java:15)
at net.lingala.zip4j.zip.ZipEngine.initAddFiles(ZipEngine.java:114)
at net.lingala.zip4j.zip.ZipEngine.addFiles(ZipEngine.java:85)
at net.lingala.zip4j.zip.ZipEngine.addFolderToZip(ZipEngine.java:297)
at net.lingala.zip4j.core.ZipFile.addFolder(ZipFile.java:356)
at net.lingala.zip4j.core.ZipFile.createZipFileFromFolder(ZipFile.java:236)
Calling
zipFile.addStream(inputStream, zipParameters)
callszipEngine.addStreamToZip(...)
which creates aZipOutputStream
which is aDeflaterOutputStream
that has aDeflate
member. ThisDeflate
member should be closed using theend()
method which is never called.The text was updated successfully, but these errors were encountered: