{"action":"created","issue":{"url":"https://api.github.com/repos/faye/faye/issues/436","repository_url":"https://api.github.com/repos/faye/faye","labels_url":"https://api.github.com/repos/faye/faye/issues/436/labels{/name}","comments_url":"https://api.github.com/repos/faye/faye/issues/436/comments","events_url":"https://api.github.com/repos/faye/faye/issues/436/events","html_url":"https://github.com/faye/faye/pull/436","id":156093818,"number":436,"title":"Prevent crash if promise is undefined","user":{"login":"Odonno","id":6053067,"avatar_url":"https://avatars.githubusercontent.com/u/6053067?v=3","gravatar_id":"","url":"https://api.github.com/users/Odonno","html_url":"https://github.com/Odonno","followers_url":"https://api.github.com/users/Odonno/followers","following_url":"https://api.github.com/users/Odonno/following{/other_user}","gists_url":"https://api.github.com/users/Odonno/gists{/gist_id}","starred_url":"https://api.github.com/users/Odonno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Odonno/subscriptions","organizations_url":"https://api.github.com/users/Odonno/orgs","repos_url":"https://api.github.com/users/Odonno/repos","events_url":"https://api.github.com/users/Odonno/events{/privacy}","received_events_url":"https://api.github.com/users/Odonno/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-21T09:53:21Z","updated_at":"2016-05-22T15:19:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/faye/faye/pulls/436","html_url":"https://github.com/faye/faye/pull/436","diff_url":"https://github.com/faye/faye/pull/436.diff","patch_url":"https://github.com/faye/faye/pull/436.patch"},"body":"Sometimes, the promise returned is undefined, adding these checks prevent the app to crash."},"comment":{"url":"https://api.github.com/repos/faye/faye/issues/comments/220837885","html_url":"https://github.com/faye/faye/pull/436#issuecomment-220837885","issue_url":"https://api.github.com/repos/faye/faye/issues/436","id":220837885,"user":{"login":"Odonno","id":6053067,"avatar_url":"https://avatars.githubusercontent.com/u/6053067?v=3","gravatar_id":"","url":"https://api.github.com/users/Odonno","html_url":"https://github.com/Odonno","followers_url":"https://api.github.com/users/Odonno/followers","following_url":"https://api.github.com/users/Odonno/following{/other_user}","gists_url":"https://api.github.com/users/Odonno/gists{/gist_id}","starred_url":"https://api.github.com/users/Odonno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Odonno/subscriptions","organizations_url":"https://api.github.com/users/Odonno/orgs","repos_url":"https://api.github.com/users/Odonno/repos","events_url":"https://api.github.com/users/Odonno/events{/privacy}","received_events_url":"https://api.github.com/users/Odonno/received_events","type":"User","site_admin":false},"created_at":"2016-05-22T15:19:42Z","updated_at":"2016-05-22T15:19:42Z","body":"@jcoglan I fixed that bug on my project https://github.com/Odonno/modern-gitter-winjs I don't know why the promise is undefined but it happens sometimes."}}
{"actor":{"display_login":"Odonno"}}