Uploaded image for project: 'Commons Compress'
  1. Commons Compress
  2. COMPRESS-492

NullPointerException for 7zip files without file headers

    XMLWordPrintableJSON

    Details

      Description

      When loading a .7z file with correct headers and without files info headers using the SevenZFile class, a NullPointerException is thrown when calling getEntries or getNextEntry, because the archive.files member of SevenZFile is null. Ideally, a subclass of IOException should be thrown in this case.

      I attached an example file we encountered in our file processing pipeline, which causes the exception.

        Attachments

        1. sample.7z
          0.1 kB
          Bernhard Geisberger

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bgeisberger Bernhard Geisberger
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: