{"action":"created","comment":{"url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/pulls/comments/41668541","id":41668541,"diff_hunk":"@@ -18,8 +18,11 @@ public partial class ParsePush {\n         t.Result.PushNotificationReceived += (sender, args) => {\n           PushNotificationReceived(ParseInstallation.CurrentInstallation, args);\n \n-          var payload = PushJson(args);\n-          parsePushNotificationReceived.Invoke(ParseInstallation.CurrentInstallation, new ParsePushNotificationEventArgs(payload));\n+          var payload = PushJson(args);\r\n+          var handler = parsePushNotificationReceived;\r\n+          if (handler != null) {\r\n+            parsePushNotificationReceived.Invoke(ParseInstallation.CurrentInstallation, new ParsePushNotificationEventArgs(payload));\r","path":"Parse/ParsePush.WinRT.cs","position":9,"original_position":9,"commit_id":"95e43deef4bc9b4db59486882f636f850c4a0e15","original_commit_id":"95e43deef4bc9b4db59486882f636f850c4a0e15","user":{"login":"nlutsenko","id":606991,"avatar_url":"https://avatars.githubusercontent.com/u/606991?v=3","gravatar_id":"","url":"https://api.github.com/users/nlutsenko","html_url":"https://github.com/nlutsenko","followers_url":"https://api.github.com/users/nlutsenko/followers","following_url":"https://api.github.com/users/nlutsenko/following{/other_user}","gists_url":"https://api.github.com/users/nlutsenko/gists{/gist_id}","starred_url":"https://api.github.com/users/nlutsenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nlutsenko/subscriptions","organizations_url":"https://api.github.com/users/nlutsenko/orgs","repos_url":"https://api.github.com/users/nlutsenko/repos","events_url":"https://api.github.com/users/nlutsenko/events{/privacy}","received_events_url":"https://api.github.com/users/nlutsenko/received_events","type":"User","site_admin":false},"body":"Call into `handler` :D","created_at":"2015-10-09T19:25:05Z","updated_at":"2015-10-09T19:25:05Z","html_url":"https://github.com/ParsePlatform/Parse-SDK-dotNET/pull/30#discussion_r41668541","pull_request_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/pulls/30","_links":{"self":{"href":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/pulls/comments/41668541"},"html":{"href":"https://github.com/ParsePlatform/Parse-SDK-dotNET/pull/30#discussion_r41668541"},"pull_request":{"href":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/pulls/30"}}},"pull_request":{"url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/pulls/30","id":47310041,"html_url":"https://github.com/ParsePlatform/Parse-SDK-dotNET/pull/30","diff_url":"https://github.com/ParsePlatform/Parse-SDK-dotNET/pull/30.diff","patch_url":"https://github.com/ParsePlatform/Parse-SDK-dotNET/pull/30.patch","issue_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/issues/30","number":30,"state":"open","locked":false,"title":"Fix NullReferenceException when push notification handler hasn't been registered.","user":{"login":"richardjrossiii","id":699752,"avatar_url":"https://avatars.githubusercontent.com/u/699752?v=3","gravatar_id":"","url":"https://api.github.com/users/richardjrossiii","html_url":"https://github.com/richardjrossiii","followers_url":"https://api.github.com/users/richardjrossiii/followers","following_url":"https://api.github.com/users/richardjrossiii/following{/other_user}","gists_url":"https://api.github.com/users/richardjrossiii/gists{/gist_id}","starred_url":"https://api.github.com/users/richardjrossiii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardjrossiii/subscriptions","organizations_url":"https://api.github.com/users/richardjrossiii/orgs","repos_url":"https://api.github.com/users/richardjrossiii/repos","events_url":"https://api.github.com/users/richardjrossiii/events{/privacy}","received_events_url":"https://api.github.com/users/richardjrossiii/received_events","type":"User","site_admin":false},"body":"When a push was received without a handler, we would previously crash. This doesn't exist as an issue on other platforms, as we use other notification delivery systems there.\r\n\r\nFixes #27.\r\n\r\ncc @hallucinogen @grantland ","created_at":"2015-10-09T19:24:04Z","updated_at":"2015-10-09T19:25:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4ac3541930138965c19f5adfacd170aa72ada82f","assignee":{"login":"nlutsenko","id":606991,"avatar_url":"https://avatars.githubusercontent.com/u/606991?v=3","gravatar_id":"","url":"https://api.github.com/users/nlutsenko","html_url":"https://github.com/nlutsenko","followers_url":"https://api.github.com/users/nlutsenko/followers","following_url":"https://api.github.com/users/nlutsenko/following{/other_user}","gists_url":"https://api.github.com/users/nlutsenko/gists{/gist_id}","starred_url":"https://api.github.com/users/nlutsenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nlutsenko/subscriptions","organizations_url":"https://api.github.com/users/nlutsenko/orgs","repos_url":"https://api.github.com/users/nlutsenko/repos","events_url":"https://api.github.com/users/nlutsenko/events{/privacy}","received_events_url":"https://api.github.com/users/nlutsenko/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/milestones/1","html_url":"https://github.com/ParsePlatform/Parse-SDK-dotNET/milestones/1.6.1","labels_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/milestones/1/labels","id":1321239,"number":1,"title":"1.6.1","description":"","creator":{"login":"hallucinogen","id":681920,"avatar_url":"https://avatars.githubusercontent.com/u/681920?v=3","gravatar_id":"","url":"https://api.github.com/users/hallucinogen","html_url":"https://github.com/hallucinogen","followers_url":"https://api.github.com/users/hallucinogen/followers","following_url":"https://api.github.com/users/hallucinogen/following{/other_user}","gists_url":"https://api.github.com/users/hallucinogen/gists{/gist_id}","starred_url":"https://api.github.com/users/hallucinogen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hallucinogen/subscriptions","organizations_url":"https://api.github.com/users/hallucinogen/orgs","repos_url":"https://api.github.com/users/hallucinogen/repos","events_url":"https://api.github.com/users/hallucinogen/events{/privacy}","received_events_url":"https://api.github.com/users/hallucinogen/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":6,"state":"open","created_at":"2015-09-23T22:33:13Z","updated_at":"2015-10-09T19:24:26Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/pulls/30/commits","review_comments_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/pulls/30/comments","review_comment_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/issues/30/comments","statuses_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/statuses/95e43deef4bc9b4db59486882f636f850c4a0e15","head":{"label":"ParsePlatform:richardross.push.crash","ref":"richardross.push.crash","sha":"95e43deef4bc9b4db59486882f636f850c4a0e15","user":{"login":"ParsePlatform","id":1294580,"avatar_url":"https://avatars.githubusercontent.com/u/1294580?v=3","gravatar_id":"","url":"https://api.github.com/users/ParsePlatform","html_url":"https://github.com/ParsePlatform","followers_url":"https://api.github.com/users/ParsePlatform/followers","following_url":"https://api.github.com/users/ParsePlatform/following{/other_user}","gists_url":"https://api.github.com/users/ParsePlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/ParsePlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ParsePlatform/subscriptions","organizations_url":"https://api.github.com/users/ParsePlatform/orgs","repos_url":"https://api.github.com/users/ParsePlatform/repos","events_url":"https://api.github.com/users/ParsePlatform/events{/privacy}","received_events_url":"https://api.github.com/users/ParsePlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":42895198,"name":"Parse-SDK-dotNET","full_name":"ParsePlatform/Parse-SDK-dotNET","owner":{"login":"ParsePlatform","id":1294580,"avatar_url":"https://avatars.githubusercontent.com/u/1294580?v=3","gravatar_id":"","url":"https://api.github.com/users/ParsePlatform","html_url":"https://github.com/ParsePlatform","followers_url":"https://api.github.com/users/ParsePlatform/followers","following_url":"https://api.github.com/users/ParsePlatform/following{/other_user}","gists_url":"https://api.github.com/users/ParsePlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/ParsePlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ParsePlatform/subscriptions","organizations_url":"https://api.github.com/users/ParsePlatform/orgs","repos_url":"https://api.github.com/users/ParsePlatform/repos","events_url":"https://api.github.com/users/ParsePlatform/events{/privacy}","received_events_url":"https://api.github.com/users/ParsePlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ParsePlatform/Parse-SDK-dotNET","description":"Parse SDK for .NET https://parse.com","fork":false,"url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET","forks_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/forks","keys_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/teams","hooks_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/hooks","issue_events_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/issues/events{/number}","events_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/events","assignees_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/assignees{/user}","branches_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/branches{/branch}","tags_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/tags","blobs_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/git/refs{/sha}","trees_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/statuses/{sha}","languages_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/languages","stargazers_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/stargazers","contributors_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/contributors","subscribers_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/subscribers","subscription_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/subscription","commits_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/commits{/sha}","git_commits_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/git/commits{/sha}","comments_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/comments{/number}","issue_comment_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/issues/comments{/number}","contents_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/contents/{+path}","compare_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/merges","archive_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/downloads","issues_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/issues{/number}","pulls_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/pulls{/number}","milestones_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/milestones{/number}","notifications_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/labels{/name}","releases_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/releases{/id}","created_at":"2015-09-21T21:41:25Z","updated_at":"2015-10-09T03:00:05Z","pushed_at":"2015-10-09T19:24:06Z","git_url":"git://github.com/ParsePlatform/Parse-SDK-dotNET.git","ssh_url":"git@github.com:ParsePlatform/Parse-SDK-dotNET.git","clone_url":"https://github.com/ParsePlatform/Parse-SDK-dotNET.git","svn_url":"https://github.com/ParsePlatform/Parse-SDK-dotNET","homepage":null,"size":5366,"stargazers_count":32,"watchers_count":32,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":12,"forks":9,"open_issues":12,"watchers":32,"default_branch":"master"}},"base":{"label":"ParsePlatform:master","ref":"master","sha":"bc9e948296e26f4c6c33fbc0a8f1153dfeefa115","user":{"login":"ParsePlatform","id":1294580,"avatar_url":"https://avatars.githubusercontent.com/u/1294580?v=3","gravatar_id":"","url":"https://api.github.com/users/ParsePlatform","html_url":"https://github.com/ParsePlatform","followers_url":"https://api.github.com/users/ParsePlatform/followers","following_url":"https://api.github.com/users/ParsePlatform/following{/other_user}","gists_url":"https://api.github.com/users/ParsePlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/ParsePlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ParsePlatform/subscriptions","organizations_url":"https://api.github.com/users/ParsePlatform/orgs","repos_url":"https://api.github.com/users/ParsePlatform/repos","events_url":"https://api.github.com/users/ParsePlatform/events{/privacy}","received_events_url":"https://api.github.com/users/ParsePlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":42895198,"name":"Parse-SDK-dotNET","full_name":"ParsePlatform/Parse-SDK-dotNET","owner":{"login":"ParsePlatform","id":1294580,"avatar_url":"https://avatars.githubusercontent.com/u/1294580?v=3","gravatar_id":"","url":"https://api.github.com/users/ParsePlatform","html_url":"https://github.com/ParsePlatform","followers_url":"https://api.github.com/users/ParsePlatform/followers","following_url":"https://api.github.com/users/ParsePlatform/following{/other_user}","gists_url":"https://api.github.com/users/ParsePlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/ParsePlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ParsePlatform/subscriptions","organizations_url":"https://api.github.com/users/ParsePlatform/orgs","repos_url":"https://api.github.com/users/ParsePlatform/repos","events_url":"https://api.github.com/users/ParsePlatform/events{/privacy}","received_events_url":"https://api.github.com/users/ParsePlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ParsePlatform/Parse-SDK-dotNET","description":"Parse SDK for .NET https://parse.com","fork":false,"url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET","forks_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/forks","keys_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/teams","hooks_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/hooks","issue_events_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/issues/events{/number}","events_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/events","assignees_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/assignees{/user}","branches_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/branches{/branch}","tags_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/tags","blobs_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/git/refs{/sha}","trees_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/statuses/{sha}","languages_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/languages","stargazers_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/stargazers","contributors_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/contributors","subscribers_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/subscribers","subscription_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/subscription","commits_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/commits{/sha}","git_commits_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/git/commits{/sha}","comments_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/comments{/number}","issue_comment_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/issues/comments{/number}","contents_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/contents/{+path}","compare_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/merges","archive_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/downloads","issues_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/issues{/number}","pulls_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/pulls{/number}","milestones_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/milestones{/number}","notifications_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/labels{/name}","releases_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/releases{/id}","created_at":"2015-09-21T21:41:25Z","updated_at":"2015-10-09T03:00:05Z","pushed_at":"2015-10-09T19:24:06Z","git_url":"git://github.com/ParsePlatform/Parse-SDK-dotNET.git","ssh_url":"git@github.com:ParsePlatform/Parse-SDK-dotNET.git","clone_url":"https://github.com/ParsePlatform/Parse-SDK-dotNET.git","svn_url":"https://github.com/ParsePlatform/Parse-SDK-dotNET","homepage":null,"size":5366,"stargazers_count":32,"watchers_count":32,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":12,"forks":9,"open_issues":12,"watchers":32,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/pulls/30"},"html":{"href":"https://github.com/ParsePlatform/Parse-SDK-dotNET/pull/30"},"issue":{"href":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/issues/30"},"comments":{"href":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/ParsePlatform/Parse-SDK-dotNET/statuses/95e43deef4bc9b4db59486882f636f850c4a0e15"}}}}