{"action":"created","issue":{"url":"https://api.github.com/repos/DotNetHypermedia/DotNetHypermedia/issues/19","repository_url":"https://api.github.com/repos/DotNetHypermedia/DotNetHypermedia","labels_url":"https://api.github.com/repos/DotNetHypermedia/DotNetHypermedia/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/DotNetHypermedia/DotNetHypermedia/issues/19/comments","events_url":"https://api.github.com/repos/DotNetHypermedia/DotNetHypermedia/issues/19/events","html_url":"https://github.com/DotNetHypermedia/DotNetHypermedia/issues/19","id":176119853,"number":19,"title":"Representation Links ArgumentNullException when Href is not set","user":{"login":"joeburdick","id":4406897,"avatar_url":"https://avatars.githubusercontent.com/u/4406897?v=3","gravatar_id":"","url":"https://api.github.com/users/joeburdick","html_url":"https://github.com/joeburdick","followers_url":"https://api.github.com/users/joeburdick/followers","following_url":"https://api.github.com/users/joeburdick/following{/other_user}","gists_url":"https://api.github.com/users/joeburdick/gists{/gist_id}","starred_url":"https://api.github.com/users/joeburdick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeburdick/subscriptions","organizations_url":"https://api.github.com/users/joeburdick/orgs","repos_url":"https://api.github.com/users/joeburdick/repos","events_url":"https://api.github.com/users/joeburdick/events{/privacy}","received_events_url":"https://api.github.com/users/joeburdick/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-09T21:52:27Z","updated_at":"2016-09-11T00:04:40Z","closed_at":"2016-09-11T00:04:40Z","body":"Consider this `Representation` and corresponding `SimpleListRepresentation`:\r\n\r\n    public class ItemRepresentation : Representation {}\r\n\r\n    public class ItemListRepresentation : SimpleListRepresentation<ItemRepresentation>\r\n    {\r\n        public ItemListRepresentation() { }\r\n\r\n        public ItemListRepresentation(IList<ItemRepresentation> list) : base(list) { }\r\n    }\r\n\r\nIf an `ItemListRepresentation` contains an `ItemRepresentation` without `Href` property set, then `RepopulateHyperMedia()` on `ItemRepresentation` will set `Links` to null, which will cause an `ArgumentNullException` to be thrown by `ToLink(IHypermediaResolver resolver)`.\r\n\r\nShould a more informative exception be thrown somewhere to handle this case?"},"comment":{"url":"https://api.github.com/repos/DotNetHypermedia/DotNetHypermedia/issues/comments/246153256","html_url":"https://github.com/DotNetHypermedia/DotNetHypermedia/issues/19#issuecomment-246153256","issue_url":"https://api.github.com/repos/DotNetHypermedia/DotNetHypermedia/issues/19","id":246153256,"user":{"login":"joeburdick","id":4406897,"avatar_url":"https://avatars.githubusercontent.com/u/4406897?v=3","gravatar_id":"","url":"https://api.github.com/users/joeburdick","html_url":"https://github.com/joeburdick","followers_url":"https://api.github.com/users/joeburdick/followers","following_url":"https://api.github.com/users/joeburdick/following{/other_user}","gists_url":"https://api.github.com/users/joeburdick/gists{/gist_id}","starred_url":"https://api.github.com/users/joeburdick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeburdick/subscriptions","organizations_url":"https://api.github.com/users/joeburdick/orgs","repos_url":"https://api.github.com/users/joeburdick/repos","events_url":"https://api.github.com/users/joeburdick/events{/privacy}","received_events_url":"https://api.github.com/users/joeburdick/received_events","type":"User","site_admin":false},"created_at":"2016-09-11T00:04:40Z","updated_at":"2016-09-11T00:04:40Z","body":"Yes. I'm stupid. Sorry about that."}}
{"actor":{"display_login":"joeburdick"}}