{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "duplicate. see 12964",
    "ClosedDate": "2011-03-20T06:44:41.95-07:00",
    "CommentCount": 0,
    "Custom": null,
    "Description": "It would be nice if ZipOutputStream could automatically detect and handle writing zero bytes.  \n \nSee the following example:\n \n \nusing System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Text;\nusing Ionic.Zip;\nusing System.IO;\n \nnamespace ziptest\n{\n\tclass Program\n\t{\n\t\tstatic void Main(string[] args)\n\t\t{\n\t\t\tusing (var zip = new Ionic.Zip.ZipOutputStream(new MemoryStream()))\n\t\t\t{\n\t\t\t\tzip.PutNextEntry(\"EmptyFile.txt\");\n \n\t\t\t\t// Both of the lines below cause the following exception\n \n\t\t\t\t/*\n\t\t\t\t Unhandled Exception: System.InvalidOperationException: Nullable object must have a value.\n\t\t\t\t   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)\n\t\t\t\t   at Ionic.Zip.ZipOutputStream._FinishCurrentEntry()\n\t\t\t\t   at Ionic.Zip.ZipOutputStream.Dispose(Boolean notCalledFromFinalizer)\n\t\t\t\t   at System.IO.Stream.Close()\n\t\t\t\t   at ziptest.Program.Main(String[] args) in Z:\\dev\\Source\\test\\ziptest\\ziptest\\Program.cs:line 21\n\t\t\t\t*/\n \n\t\t\t\tzip.Write(null, 0, 0);\n\t\t\t\t//zip.Write(new byte[1], 0, 0);\n\t\t\t}\n\t\t\t\n\t\t}\n\t}\n}",
    "LastUpdatedDate": "2013-05-16T05:31:38.623-07:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2011-02-05T00:28:20.5-08:00",
    "Status": {
      "Name": "Closed",
      "Id": 4
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "Writing zero bytes to a ZipOutputStream causes exception",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 1,
    "Id": 12965
  },
  "FileAttachments": [],
  "Comments": []
}