zip4j: File name is null, cannot determine file header with exact match for fileName:
Some customers were reporting this issue. For some reason the fileName is sometimes null. Any ideas why this could be happening?
if (!isStringNotNullAndNotEmpty(fileName)) {
throw new ZipException("file name is null, cannot determine file header with exact match for fileName: "
+ fileName);
}
Or is there any way how I could ignore this error?
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 19 (14 by maintainers)
Commits related to this issue
- #281 Add more info to exception message — committed to srikanth-lingala/zip4j by srikanth-lingala 3 years ago
- #281 Skip adding file with empty names — committed to srikanth-lingala/zip4j by srikanth-lingala 3 years ago
Fixed in v2.8.0 released today.
Found the file with the issue. It’s a file with no name and no extension. I have no idea what created it but it’s there and it’s the main issue.