{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "not reproducable.",
    "ClosedDate": "2009-02-25T01:37:07.647-08:00",
    "CommentCount": 0,
    "Custom": null,
    "Description": "corner case:\nwhen there are no entries, the Entries property, instead of returning a 0 elements collection, throws a NullReferenceException\nthe empty file was produced using DotNetZip.\nwinzip rejects creating that from an empty directory, but is able to display it without error.\n(Using DotNetZipLib-Runtime-v1.7.zip from January 15th)",
    "LastUpdatedDate": "2013-05-16T05:32:32.577-07:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2009-01-23T05:24:42.253-08:00",
    "Status": {
      "Name": "Closed",
      "Id": 4
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "NullReferenceException when the archive is empty",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 1,
    "Id": 6965
  },
  "FileAttachments": [
    {
      "FileId": 1683,
      "FileName": "EmptyZipFile.zip",
      "DownloadUrl": ".\\1683"
    }
  ],
  "Comments": [
    {
      "Message": "I solved the problem by commenting the following lines in ReadIntoInstance (in #if OPTIMIZE_WI6612)\r\n                //if (datum == ZipConstants.EndOfCentralDirectorySignature)\r\n                //    return; \r\nbecause the _entries field was not initialized at that point (perhaps depending on the used contructor)\r\nand after the line \r\n                long posn = s.Length - 64; \r\nI added\r\n                if (posn < 0) posn = 0; // prevent seeking before start of file\r\n",
      "PostedDate": "2009-01-29T00:13:09.29-08:00",
      "Id": -2147483648
    },
    {
      "Message": "Does the exception occur in DotNetZip (library) code?  or in your own application code?\r\nCan you please show me the code you use to get the exception, show me a stack trace of the exception, and finally tell me what behavior you would like to see? \r\n\r\nI tried reading the attached zip file with DotNetZip v1.7 and did not get an exception when I referenced the Entries property.   It may be that there was a bug in a prior snapshot of v1.7, and it was fixed with some other change.  \r\n\r\nAre you saying that you would like the Entries property to be non-null, a zero-element collection, when  there are no Entries in the zip archive?  That is the behavior I get in my code.\r\n",
      "PostedDate": "2009-02-08T18:48:59.547-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2009-02-25T01:37:07.647-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-02-21T18:44:32.857-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-05-16T05:32:32.577-07:00",
      "Id": -2147483648
    }
  ]
}