{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "This is a duplicate of workitem 12634.It was fixed in changeset 79077. First binary with this fix&#58; v1.9.1.6",
    "ClosedDate": "2011-06-15T04:54:28.017-07:00",
    "CommentCount": 0,
    "Custom": null,
    "Description": "When using ZipOutputStream and including a comment, ZipOutputStream will throw a NullReferenceException on disposal. \n \nStack Trace:\n   at Ionic.Zip.ZipOutput.GenCentralDirectoryFooter(Int64 StartOfCentralDirectory, Int64 EndOfCentralDirectory, Zip64Option zip64, Int32 entryCount, String comment, Encoding encoding)\n   at Ionic.Zip.ZipOutput.WriteCentralDirectoryStructure(Stream s, ICollection`1 entries, UInt32 numSegments, Zip64Option zip64, String comment, Encoding encoding)\n   at Ionic.Zip.ZipOutputStream.Dispose(Boolean notCalledFromFinalizer)\n \nCode example:\nusing (ZipOutputStream zipStream = new ZipOutputStream(OutputStream))\n{\n\tzipStream.CompressionLevel = Ionic.Zlib.CompressionLevel.None;\n\tzipStream.Comment = \"Cheeso is the man!\";\n\t//If you explicitly set UseUnicodeAsNecessary to false, the error no longer occurs. \n\t//zipStream.UseUnicodeAsNecessary = false;\n\t// .... Write to stream\n} //ex is thrown here\n \nThe environment is a Windows XP Professional x86 installation.\nI noticed ProvisionalAlternateEncoding is null, and am wondering if that's what's is causing the exception.\n \nThanks for all your work on this library.",
    "LastUpdatedDate": "2013-05-16T05:31:52.453-07:00",
    "PlannedForRelease": "v1.9.1.8 DotNetZip - Latest Stable",
    "ReleaseVisibleToPublic": true,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2010-02-28T20:58:22.967-08:00",
    "Status": {
      "Name": "Closed",
      "Id": 4
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "ZipOutputStream comment NullReferenceException",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 1,
    "Id": 10339
  },
  "FileAttachments": [],
  "Comments": [
    {
      "Message": "Workaround:\r\nzout.UseUnicodeAsNecessary = true;\r\n\r\nThe problem is, that otherwise encoder isn't set (therefore NullReferenceException). The code could be fixed in 5 minutes.",
      "PostedDate": "2010-09-28T11:05:31.423-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2011-06-13T21:55:23.573-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2011-06-15T04:54:28.017-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-02-21T18:43:38.767-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-05-16T05:31:52.453-07:00",
      "Id": -2147483648
    }
  ]
}