{"action":"opened","issue":{"url":"https://api.github.com/repos/domaindrivendev/Ahoy/issues/51","labels_url":"https://api.github.com/repos/domaindrivendev/Ahoy/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/domaindrivendev/Ahoy/issues/51/comments","events_url":"https://api.github.com/repos/domaindrivendev/Ahoy/issues/51/events","html_url":"https://github.com/domaindrivendev/Ahoy/issues/51","id":124032649,"number":51,"title":"System.NullReferenceException in XmlCommentsModelFilter.ApplyPropertyComments","user":{"login":"FreakyJ","id":1094997,"avatar_url":"https://avatars.githubusercontent.com/u/1094997?v=3","gravatar_id":"","url":"https://api.github.com/users/FreakyJ","html_url":"https://github.com/FreakyJ","followers_url":"https://api.github.com/users/FreakyJ/followers","following_url":"https://api.github.com/users/FreakyJ/following{/other_user}","gists_url":"https://api.github.com/users/FreakyJ/gists{/gist_id}","starred_url":"https://api.github.com/users/FreakyJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FreakyJ/subscriptions","organizations_url":"https://api.github.com/users/FreakyJ/orgs","repos_url":"https://api.github.com/users/FreakyJ/repos","events_url":"https://api.github.com/users/FreakyJ/events{/privacy}","received_events_url":"https://api.github.com/users/FreakyJ/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-28T08:08:24Z","updated_at":"2015-12-28T08:08:24Z","closed_at":null,"body":"Just yesterday I've tried this nice little tool and unfortunately I've got a NRE.\r\n\r\nthe controller code looks like this:\r\n\r\n```javascript\r\npublic class Item\r\n  {\r\n    /// <summary>\r\n    /// or that\r\n    /// </summary>\r\n    public int Id;\r\n    /// <summary>\r\n    /// or this\r\n    /// </summary>\r\n    public string Name;\r\n  }\r\n\r\n  /// <summary>\r\n  /// Some summary\r\n  /// </summary>\r\n  /// \r\n  [Route(\"api/[Controller]\")]\r\n  [Produces(\"application/json\", \"text/json\")]\r\n  public class ItemsController : Controller\r\n  {\r\n    /// <summary>\r\n    /// Return all items\r\n    /// </summary>\r\n    public static List<Item> Items = new List<Item>\r\n    {\r\n      new Item { Id = 1, Name = \"First Test Item\" },\r\n      new Item { Id = 2, Name = \"Second Test Item\" },\r\n    };\r\n\r\n    /// <summary>\r\n    /// Get all items\r\n    /// </summary>\r\n    /// <remarks>This will return all items</remarks>\r\n    /// <returns>RETURN</returns>\r\n    [HttpGet]\r\n    public IEnumerable<Item> Get()\r\n    {\r\n      return Items;\r\n    }\r\n\r\n    /// <summary>\r\n    /// Get Item by Id\r\n    /// </summary>\r\n    /// <param name=\"id\">A var</param>\r\n    /// <param name=\"dummy\">just a dummy var</param>\r\n    /// <returns>RETURN</returns>\r\n    [HttpGet(\"itemId\")]\r\n    public Item Get([FromQuery]int id, int dummy)\r\n    {\r\n      return Items.FirstOrDefault(item => item.Id == id);\r\n    }\r\n  }\r\n```\r\nUsing xml comments this will result in a Null reference Exception in XmlCommentsModelFilter.ApplyPropertyComments @ line 43\r\nThe problem is that memberInfo is null.\r\n\r\nThe problem seems to be with this part of the code above:\r\n```javascript\r\npublic class Item\r\n  {\r\n    /// <summary>\r\n    /// or that\r\n    /// </summary>\r\n    public int Id;\r\n    /// <summary>\r\n    /// or this\r\n    /// </summary>\r\n    public string Name;\r\n  }\r\n```\r\nI fixed it by adding \r\n```javascript\r\nif (memberInfo == null) return;\r\n```\r\n\r\nBut I don't know if this is actually the proper way in doing it.\r\n\r\nBy the way: Will there be also a .Net4.5.1 version of Swashbuckle? :)\r\nWe plan to use it in MediaPortal2 and this is based on .Net4.5.1."}}