{"action":"created","issue":{"url":"https://api.github.com/repos/fat/haunt/issues/20","labels_url":"https://api.github.com/repos/fat/haunt/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/fat/haunt/issues/20/comments","events_url":"https://api.github.com/repos/fat/haunt/issues/20/events","html_url":"https://github.com/fat/haunt/pull/20","id":122433362,"number":20,"title":"repo: fix accessing property on possible null value in getIssues","user":{"login":"parkr","id":237985,"avatar_url":"https://avatars.githubusercontent.com/u/237985?v=3","gravatar_id":"","url":"https://api.github.com/users/parkr","html_url":"https://github.com/parkr","followers_url":"https://api.github.com/users/parkr/followers","following_url":"https://api.github.com/users/parkr/following{/other_user}","gists_url":"https://api.github.com/users/parkr/gists{/gist_id}","starred_url":"https://api.github.com/users/parkr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parkr/subscriptions","organizations_url":"https://api.github.com/users/parkr/orgs","repos_url":"https://api.github.com/users/parkr/repos","events_url":"https://api.github.com/users/parkr/events{/privacy}","received_events_url":"https://api.github.com/users/parkr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-16T05:44:22Z","updated_at":"2015-12-16T08:05:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/fat/haunt/pulls/20","html_url":"https://github.com/fat/haunt/pull/20","diff_url":"https://github.com/fat/haunt/pull/20.diff","patch_url":"https://github.com/fat/haunt/pull/20.patch"},"body":"If `issues[0]` returns `null` or `undefined`, accessing the `pull_request` property\nwill cause it to fail.\n\n```text\nTypeError: Cannot read property 'pull_request' of undefined\n    at null.<anonymous> (/Users/parker/jekyll/haunt/node_modules/haunt/lib/repo.js:156:23)\n```"},"comment":{"url":"https://api.github.com/repos/fat/haunt/issues/comments/165027283","html_url":"https://github.com/fat/haunt/pull/20#issuecomment-165027283","issue_url":"https://api.github.com/repos/fat/haunt/issues/20","id":165027283,"user":{"login":"vbardales","id":1446444,"avatar_url":"https://avatars.githubusercontent.com/u/1446444?v=3","gravatar_id":"","url":"https://api.github.com/users/vbardales","html_url":"https://github.com/vbardales","followers_url":"https://api.github.com/users/vbardales/followers","following_url":"https://api.github.com/users/vbardales/following{/other_user}","gists_url":"https://api.github.com/users/vbardales/gists{/gist_id}","starred_url":"https://api.github.com/users/vbardales/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vbardales/subscriptions","organizations_url":"https://api.github.com/users/vbardales/orgs","repos_url":"https://api.github.com/users/vbardales/repos","events_url":"https://api.github.com/users/vbardales/events{/privacy}","received_events_url":"https://api.github.com/users/vbardales/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T08:05:35Z","updated_at":"2015-12-16T08:05:35Z","body":"Thanks, but I prefer my version of this one :)\r\n\r\n````\r\nif (!issues[0] || !issues[0].pull_request) {\r\n````"}}