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

NullPointerException in ZipArchiveOutputStream with invalid entries

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.8
    • 1.8.1
    • Archivers
    • None
    • Mac OS 10.9, Java 6, 7

    Description

      Writing raw data seems to cause problems in multiple ways, because an internal field is not set. Is this a wrong API usage?

      java.io.ByteArrayOutputStream var0 = new java.io.ByteArrayOutputStream();
      org.apache.commons.compress.archivers.jar.JarArchiveOutputStream var1 = new org.apache.commons.compress.archivers.jar.JarArchiveOutputStream((java.io.OutputStream)var0);
      var1.write(25843);

      Other tests (see attachment) are very similar and cause the same problem. They can probably be ignored because the first test is the shortest one.

      Attachments

        1. Report1.java
          5 kB
          Cyrille Artho

        Activity

          People

            Unassigned Unassigned
            Telcontar Cyrille Artho
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: