{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "This is fixed in change set 24084.  The ZipFile.Read(Stream s) method now throws a more meaningful exception. \nThis fix will be in the next interim v1.6 release, and will be in the v1.6 final release.",
    "ClosedDate": "2008-09-09T13:50:40.87-07:00",
    "CommentCount": 0,
    "Custom": null,
    "Description": "When I do:\nvar file = ZipFile.Read(null)\nit throws:\nSystem.NullReferenceException : В экземпляре объекта не задана ссылка на объект.\n\tв Ionic.Utils.Zip.ZipEntry.ReadHeader(ZipEntry ze)\n\tв Ionic.Utils.Zip.ZipEntry.Read(Stream s)\n\tв Ionic.Utils.Zip.ZipFile.ReadIntoInstance(ZipFile zf)\n\tв Ionic.Utils.Zip.ZipFile.Read(Stream zipStream, TextWriter statusMessageWriter)\n\tв Ionic.Utils.Zip.ZipFile.Read(Stream inputZipStream)",
    "LastUpdatedDate": "2013-05-16T05:32:39.883-07:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2008-09-03T11:22:40.157-07:00",
    "Status": {
      "Name": "Closed",
      "Id": 4
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "NullReferenceException in ZipEntry.ReadHeader(ZipEntry ze) when passing null for stream",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 1,
    "Id": 5998
  },
  "FileAttachments": [
    {
      "FileId": 1307,
      "FileName": "empty.zip",
      "DownloadUrl": ".\\1307"
    }
  ],
  "Comments": [
    {
      "Message": "Sorry, looks like the cause of the problem was null stream. Empty file is handles as it's supposed. So, there is a need for argument null checks :)",
      "PostedDate": "2008-09-03T12:11:52.733-07:00",
      "Id": -2147483648
    },
    {
      "Message": "Which version of the library are you using?  \r\nwhen I do this... using the latest v1.6 preview release, I don't get an error.\r\n",
      "PostedDate": "2008-09-05T11:14:18.9-07:00",
      "Id": -2147483648
    },
    {
      "Message": "I'm using release package: Zip Library v1.6 packed on Mon-08-25-2008-171919.15",
      "PostedDate": "2008-09-08T08:11:19.723-07:00",
      "Id": -2147483648
    },
    {
      "Message": "Please send me source code. \r\nI'm not clear on how you open the stream. \r\n\r\nThis code works for me... (Succeeds, no exception): \r\n\r\n\tvar path = \"empty.zip\";\r\n\tvar s = System.IO.File.OpenRead(path);\r\n\r\n\tusing (var zip = ZipFile.Read(s))\r\n\t{\r\n\t    foreach (var e in zip)\r\n\t    {\r\n\t\tConsole.WriteLine(\"entry: {0}\", e.FileName);\r\n\t    }\r\n\t}\r\n",
      "PostedDate": "2008-09-08T13:17:55.323-07:00",
      "Id": -2147483648
    },
    {
      "Message": "I've corrected myself earlier. Let me repeat: \r\nStream stream = null;\r\nZipFile.Read(stream); // exception\r\n",
      "PostedDate": "2008-09-08T17:38:31.21-07:00",
      "Id": -2147483648
    },
    {
      "Message": "oh.  I see.  \r\n\r\nI had not understood your comment regarding the \"null stream\".   I was still operating on the assumption that it had something to do with the empty.zip file.  In fact, this workitem is not related at all to the empty.zip file.\r\n",
      "PostedDate": "2008-09-08T18:25:01.633-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2008-09-08T18:25:46.6-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2008-09-09T13:50:40.87-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-02-21T18:44:42.043-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-05-16T05:32:39.883-07:00",
      "Id": -2147483648
    }
  ]
}