{"action":"created","issue":{"url":"https://api.github.com/repos/aurelia/templating/issues/34","labels_url":"https://api.github.com/repos/aurelia/templating/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/aurelia/templating/issues/34/comments","events_url":"https://api.github.com/repos/aurelia/templating/issues/34/events","html_url":"https://github.com/aurelia/templating/issues/34","id":61873800,"number":34,"title":"ViewSlot firstChild null not being checked","user":{"login":"cmichaelgraham","id":10272832,"avatar_url":"https://avatars.githubusercontent.com/u/10272832?v=3","gravatar_id":"","url":"https://api.github.com/users/cmichaelgraham","html_url":"https://github.com/cmichaelgraham","followers_url":"https://api.github.com/users/cmichaelgraham/followers","following_url":"https://api.github.com/users/cmichaelgraham/following{/other_user}","gists_url":"https://api.github.com/users/cmichaelgraham/gists{/gist_id}","starred_url":"https://api.github.com/users/cmichaelgraham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmichaelgraham/subscriptions","organizations_url":"https://api.github.com/users/cmichaelgraham/orgs","repos_url":"https://api.github.com/users/cmichaelgraham/repos","events_url":"https://api.github.com/users/cmichaelgraham/events{/privacy}","received_events_url":"https://api.github.com/users/cmichaelgraham/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-15T17:40:38Z","updated_at":"2015-03-15T21:39:43Z","closed_at":null,"body":"i'm getting an exception when i run a `todo` sample.  it looks like `ViewSlot` is not checking if .firstChild is null before referencing its properties.\r\n\r\n[typescript repo containing sample](https://github.com/cmichaelgraham/aurelia-typescript)\r\n[todo project within repo](https://github.com/cmichaelgraham/aurelia-typescript/tree/master/todo-require-vs-ts)\r\n[running code illustrating exception](http://cmichaelgraham.github.io/aurelia-typescript/todo-require-vs-ts/index-latest.html)\r\n[no check for firstChild null](https://github.com/aurelia/templating/blob/master/src/view-slot.js#L142)"},"comment":{"url":"https://api.github.com/repos/aurelia/templating/issues/comments/81253379","html_url":"https://github.com/aurelia/templating/issues/34#issuecomment-81253379","issue_url":"https://api.github.com/repos/aurelia/templating/issues/34","id":81253379,"user":{"login":"cmichaelgraham","id":10272832,"avatar_url":"https://avatars.githubusercontent.com/u/10272832?v=3","gravatar_id":"","url":"https://api.github.com/users/cmichaelgraham","html_url":"https://github.com/cmichaelgraham","followers_url":"https://api.github.com/users/cmichaelgraham/followers","following_url":"https://api.github.com/users/cmichaelgraham/following{/other_user}","gists_url":"https://api.github.com/users/cmichaelgraham/gists{/gist_id}","starred_url":"https://api.github.com/users/cmichaelgraham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmichaelgraham/subscriptions","organizations_url":"https://api.github.com/users/cmichaelgraham/orgs","repos_url":"https://api.github.com/users/cmichaelgraham/repos","events_url":"https://api.github.com/users/cmichaelgraham/events{/privacy}","received_events_url":"https://api.github.com/users/cmichaelgraham/received_events","type":"User","site_admin":false},"created_at":"2015-03-15T21:39:42Z","updated_at":"2015-03-15T21:39:42Z","body":"ok - so just look for those places in ViewSlot and add some checks?  i'll give it a go :)"}}