{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/coreclr/issues/25","labels_url":"https://api.github.com/repos/dotnet/coreclr/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/coreclr/issues/25/comments","events_url":"https://api.github.com/repos/dotnet/coreclr/issues/25/events","html_url":"https://github.com/dotnet/coreclr/issues/25","id":56424680,"number":25,"title":"NullReferenceException - Completely devoid of details","user":{"login":"vongillern","id":1765787,"avatar_url":"https://avatars.githubusercontent.com/u/1765787?v=3","gravatar_id":"","url":"https://api.github.com/users/vongillern","html_url":"https://github.com/vongillern","followers_url":"https://api.github.com/users/vongillern/followers","following_url":"https://api.github.com/users/vongillern/following{/other_user}","gists_url":"https://api.github.com/users/vongillern/gists{/gist_id}","starred_url":"https://api.github.com/users/vongillern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vongillern/subscriptions","organizations_url":"https://api.github.com/users/vongillern/orgs","repos_url":"https://api.github.com/users/vongillern/repos","events_url":"https://api.github.com/users/vongillern/events{/privacy}","received_events_url":"https://api.github.com/users/vongillern/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":27,"created_at":"2015-02-03T19:30:56Z","updated_at":"2015-02-11T20:52:41Z","closed_at":null,"body":"I don't know if this necessarily the right place for this, but the payoff is big enough to warrant a possible failed attempt.\r\n\r\nNullReferenceExceptions are the most common exceptions your average developer is going to encounter, and yet the only information that is included in the exception is the message that *something* was null and if you may or may not get a line number in the stacktrace. \r\n\r\nTake the following example:\r\n\r\n    _orderService.CreateOrder(items.ToList(), customer.CustomerId);\r\n\r\nIf I get a NullReferenceException on this line, there are three different objects that could have been null and caused the error (_orderService, items and customer). Knowing that it was specifically customer that was null would be incredibly helpful. Extending this concept further, having a small dump of all locally scoped variables when the exception was thrown would be incredibly useful, but I'll go with baby steps and just settle for knowing which variable/expression was the root cause of the null reference exception."},"comment":{"url":"https://api.github.com/repos/dotnet/coreclr/issues/comments/73962382","html_url":"https://github.com/dotnet/coreclr/issues/25#issuecomment-73962382","issue_url":"https://api.github.com/repos/dotnet/coreclr/issues/25","id":73962382,"user":{"login":"peteraritchie","id":408620,"avatar_url":"https://avatars.githubusercontent.com/u/408620?v=3","gravatar_id":"","url":"https://api.github.com/users/peteraritchie","html_url":"https://github.com/peteraritchie","followers_url":"https://api.github.com/users/peteraritchie/followers","following_url":"https://api.github.com/users/peteraritchie/following{/other_user}","gists_url":"https://api.github.com/users/peteraritchie/gists{/gist_id}","starred_url":"https://api.github.com/users/peteraritchie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peteraritchie/subscriptions","organizations_url":"https://api.github.com/users/peteraritchie/orgs","repos_url":"https://api.github.com/users/peteraritchie/repos","events_url":"https://api.github.com/users/peteraritchie/events{/privacy}","received_events_url":"https://api.github.com/users/peteraritchie/received_events","type":"User","site_admin":false},"created_at":"2015-02-11T20:52:41Z","updated_at":"2015-02-11T20:52:41Z","body":"@rafabertholdo Wouldn't that just defer a null exception to higher-up?  That seems like it would make the root cause of a null reference exception even harder to find."}}