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

Most upvoted comments

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. image