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

NPE from TarBuffer.tryToConsumeSecondEOFRecord

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5
    • 1.6
    • Archivers
    • None

    Description

      I get an NPE using Lister on the decompressed
      Xerces-J-bin.2.5.0.tar.gz archive.

      Wrapping the for loop in TarBuffer.isEOFRecord with a null check would fix the issue; it would also clean up the TarArchiveInputStream.getRecord implementation a little.

      Attachments

        1. TarArchiveInputStream.java.patch
          0.6 kB
          Jeremy Gustie
        2. TarBuffer.java.patch
          0.6 kB
          Jeremy Gustie

        Activity

          People

            Unassigned Unassigned
            jgustie Jeremy Gustie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: