{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "fixed in changeset 31219.  This will be first available in preview release v1.8.2.9.",
    "ClosedDate": "2009-04-30T09:10:53.12-07:00",
    "CommentCount": 0,
    "Custom": null,
    "Description": "If you attempt to instantiate a new  Ionic.Zip.Zipfile referencing an existing zip-file with no entries, a NullReferenceException is thrown.\n \nZipFile Z = new ZipFile(\"name-of-existing-file-with-on-entries\".zip);\nthrows NullReferenceExceptions in Count, Entries, EntryFileName, and RequiresZip64.\n \nThe error does not occur using the static ZipFile.Read method on the same archive.",
    "LastUpdatedDate": "2013-05-16T05:32:26.38-07:00",
    "PlannedForRelease": "1.8 DotNetZip",
    "ReleaseVisibleToPublic": true,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2009-04-25T02:22:17.983-07:00",
    "Status": {
      "Name": "Closed",
      "Id": 4
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "Entries is null on reading no-entries zip archive with ctor",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 1,
    "Id": 7685
  },
  "FileAttachments": [
    {
      "FileId": 1922,
      "FileName": "ZeroEntries.cs",
      "DownloadUrl": ".\\1922"
    },
    {
      "FileId": 1923,
      "FileName": "IonicZipException.zip",
      "DownloadUrl": ".\\1923"
    }
  ],
  "Comments": [
    {
      "Message": "I've looked into this and could not reproduce the problem you reported.  Enclosed please find some source code that attempts to follow your report.  It references the ZipFile.Entries property, the ZipFile.Entries.Count property, and RequiresZip64.   It does not generate any problems or exceptions. \r\n\r\nIf you can provide a similar source code module that reproduces the problem you saw, I will be able to investigate further.  Attach it to this work item. \r\n\r\nRegarding \"the zip-file remains locked\" - are you using a using() clause?   Instances of ZipFile will remain locked if you do not employ a using clause.\r\n",
      "PostedDate": "2009-04-29T13:26:41.117-07:00",
      "Id": -2147483648
    },
    {
      "Message": "Thank you for your reply.\r\n\r\nI wasn't aware of the need to employ the \"using\" thingy.\r\nThat seems to sort out that problem.\r\n\r\nAs for the exception I can see your code working just fine.\r\nHowever if you create a zip file, add one or more entries, removes all entries, and then finally attempts an entry count, that will throw an exception.\r\nI've attached a small example that reproduces the problem.\r\n",
      "PostedDate": "2009-04-30T00:21:57.567-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2009-04-30T00:22:02.553-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2009-04-30T09:06:50.197-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2009-04-30T09:10:53.12-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-02-21T18:44:23.383-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-05-16T05:32:26.38-07:00",
      "Id": -2147483648
    }
  ]
}