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

NPE from TarBuffer.tryToConsumeSecondEOFRecord

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.6
    • Component/s: Archivers
    • Labels:
      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. TarBuffer.java.patch
          0.6 kB
          Jeremy Gustie
        2. TarArchiveInputStream.java.patch
          0.6 kB
          Jeremy Gustie

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: