Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nullpointer when creating zip based on folder #92

Closed
alebo611 opened this issue Oct 21, 2019 · 3 comments
Closed

nullpointer when creating zip based on folder #92

alebo611 opened this issue Oct 21, 2019 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@alebo611
Copy link

alebo611 commented Oct 21, 2019

(version 2.2.2) This code:

ZipFile zipFile = new ZipFile("hello.zip");
zipFile.addFolder(new File("myfolder"));

will cause a nullpointer:

Caused by: java.lang.NullPointerException
	at net.lingala.zip4j.tasks.AddFolderToZipTask.setDefaultFolderPath(AddFolderToZipTask.java:49)
	at net.lingala.zip4j.tasks.AddFolderToZipTask.executeTask(AddFolderToZipTask.java:28)
	at net.lingala.zip4j.tasks.AddFolderToZipTask.executeTask(AddFolderToZipTask.java:17)
	at net.lingala.zip4j.tasks.AsyncZipTask.performTaskWithErrorHandling(AsyncZipTask.java:42)
@srikanth-lingala srikanth-lingala self-assigned this Oct 24, 2019
@srikanth-lingala srikanth-lingala added the bug Something isn't working label Oct 24, 2019
@srikanth-lingala
Copy link
Owner

Issue fixed. Will include the fix in the next release.

@srikanth-lingala
Copy link
Owner

Fixed in v2.2.4 released today

@alebo611
Copy link
Author

alebo611 commented Nov 5, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants