{"action":"created","comment":{"url":"https://api.github.com/repos/xenserver/xenadmin/pulls/comments/45858693","id":45858693,"diff_hunk":"@@ -96,19 +96,27 @@ public GeneralTabPage()\n \r\n         private void licenseStatus_ItemUpdated(object sender, EventArgs e)\r\n         {\r\n-            if (pdSectionLicense == null)\r\n+            if (pdSectionLicense == null || licenseStatus == null)\r\n                 return;\r\n \r\n             GeneralTabLicenseStatusStringifier ss = new GeneralTabLicenseStatusStringifier(licenseStatus);\r\n-            Program.Invoke(Program.MainWindow, () => pdSectionLicense.UpdateEntryValueWithKey(\r\n-                                            FriendlyName(\"host.license_params-expiry\"),\r\n-                                            ss.ExpiryDate, \r\n-                                            ss.ShowExpiryDate));\r\n+            Program.Invoke(Program.MainWindow, () => \r\n+            {\r\n+                if (pdSectionLicense != null)\r","path":"XenAdmin/TabPages/GeneralTabPage.cs","position":15,"original_position":15,"commit_id":"2e8e7afb7e74304bbcd82e7a3a65eca08781c46b","original_commit_id":"2e8e7afb7e74304bbcd82e7a3a65eca08781c46b","user":{"login":"stephen-turner","id":5031457,"avatar_url":"https://avatars.githubusercontent.com/u/5031457?v=3","gravatar_id":"","url":"https://api.github.com/users/stephen-turner","html_url":"https://github.com/stephen-turner","followers_url":"https://api.github.com/users/stephen-turner/followers","following_url":"https://api.github.com/users/stephen-turner/following{/other_user}","gists_url":"https://api.github.com/users/stephen-turner/gists{/gist_id}","starred_url":"https://api.github.com/users/stephen-turner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephen-turner/subscriptions","organizations_url":"https://api.github.com/users/stephen-turner/orgs","repos_url":"https://api.github.com/users/stephen-turner/repos","events_url":"https://api.github.com/users/stephen-turner/events{/privacy}","received_events_url":"https://api.github.com/users/stephen-turner/received_events","type":"User","site_admin":false},"body":"Is this check needed? I don't see how pdSectionLicense can be null.","created_at":"2015-11-25T12:00:24Z","updated_at":"2015-11-25T12:00:24Z","html_url":"https://github.com/xenserver/xenadmin/pull/744#discussion_r45858693","pull_request_url":"https://api.github.com/repos/xenserver/xenadmin/pulls/744","_links":{"self":{"href":"https://api.github.com/repos/xenserver/xenadmin/pulls/comments/45858693"},"html":{"href":"https://github.com/xenserver/xenadmin/pull/744#discussion_r45858693"},"pull_request":{"href":"https://api.github.com/repos/xenserver/xenadmin/pulls/744"}}},"pull_request":{"url":"https://api.github.com/repos/xenserver/xenadmin/pulls/744","id":51532416,"html_url":"https://github.com/xenserver/xenadmin/pull/744","diff_url":"https://github.com/xenserver/xenadmin/pull/744.diff","patch_url":"https://github.com/xenserver/xenadmin/pull/744.patch","issue_url":"https://api.github.com/repos/xenserver/xenadmin/issues/744","number":744,"state":"open","locked":false,"title":"CA-188554: XenCenter Error Uncaught exception System.NullReferenceException","user":{"login":"GaborApatiNagy","id":6017976,"avatar_url":"https://avatars.githubusercontent.com/u/6017976?v=3","gravatar_id":"","url":"https://api.github.com/users/GaborApatiNagy","html_url":"https://github.com/GaborApatiNagy","followers_url":"https://api.github.com/users/GaborApatiNagy/followers","following_url":"https://api.github.com/users/GaborApatiNagy/following{/other_user}","gists_url":"https://api.github.com/users/GaborApatiNagy/gists{/gist_id}","starred_url":"https://api.github.com/users/GaborApatiNagy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GaborApatiNagy/subscriptions","organizations_url":"https://api.github.com/users/GaborApatiNagy/orgs","repos_url":"https://api.github.com/users/GaborApatiNagy/repos","events_url":"https://api.github.com/users/GaborApatiNagy/events{/privacy}","received_events_url":"https://api.github.com/users/GaborApatiNagy/received_events","type":"User","site_admin":false},"body":"Fixed the exception that was caused by a missing null reference check and also the fact that the license status had to be watched only for pools and hosts, so added a check before starting watching the license status of the IXenObject (on GeneralTabPage)\r\n\r\nSigned-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>","created_at":"2015-11-23T14:53:38Z","updated_at":"2015-11-25T12:00:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"24fa4dd05e9423b318980c2f26639a8c09e1b98e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/xenserver/xenadmin/pulls/744/commits","review_comments_url":"https://api.github.com/repos/xenserver/xenadmin/pulls/744/comments","review_comment_url":"https://api.github.com/repos/xenserver/xenadmin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xenserver/xenadmin/issues/744/comments","statuses_url":"https://api.github.com/repos/xenserver/xenadmin/statuses/2e8e7afb7e74304bbcd82e7a3a65eca08781c46b","head":{"label":"GaborApatiNagy:CA-188554","ref":"CA-188554","sha":"2e8e7afb7e74304bbcd82e7a3a65eca08781c46b","user":{"login":"GaborApatiNagy","id":6017976,"avatar_url":"https://avatars.githubusercontent.com/u/6017976?v=3","gravatar_id":"","url":"https://api.github.com/users/GaborApatiNagy","html_url":"https://github.com/GaborApatiNagy","followers_url":"https://api.github.com/users/GaborApatiNagy/followers","following_url":"https://api.github.com/users/GaborApatiNagy/following{/other_user}","gists_url":"https://api.github.com/users/GaborApatiNagy/gists{/gist_id}","starred_url":"https://api.github.com/users/GaborApatiNagy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GaborApatiNagy/subscriptions","organizations_url":"https://api.github.com/users/GaborApatiNagy/orgs","repos_url":"https://api.github.com/users/GaborApatiNagy/repos","events_url":"https://api.github.com/users/GaborApatiNagy/events{/privacy}","received_events_url":"https://api.github.com/users/GaborApatiNagy/received_events","type":"User","site_admin":false},"repo":{"id":15899182,"name":"xenadmin","full_name":"GaborApatiNagy/xenadmin","owner":{"login":"GaborApatiNagy","id":6017976,"avatar_url":"https://avatars.githubusercontent.com/u/6017976?v=3","gravatar_id":"","url":"https://api.github.com/users/GaborApatiNagy","html_url":"https://github.com/GaborApatiNagy","followers_url":"https://api.github.com/users/GaborApatiNagy/followers","following_url":"https://api.github.com/users/GaborApatiNagy/following{/other_user}","gists_url":"https://api.github.com/users/GaborApatiNagy/gists{/gist_id}","starred_url":"https://api.github.com/users/GaborApatiNagy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GaborApatiNagy/subscriptions","organizations_url":"https://api.github.com/users/GaborApatiNagy/orgs","repos_url":"https://api.github.com/users/GaborApatiNagy/repos","events_url":"https://api.github.com/users/GaborApatiNagy/events{/privacy}","received_events_url":"https://api.github.com/users/GaborApatiNagy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GaborApatiNagy/xenadmin","description":"XenCenter, the Windows management console for XenServer","fork":true,"url":"https://api.github.com/repos/GaborApatiNagy/xenadmin","forks_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/forks","keys_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/teams","hooks_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/hooks","issue_events_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/issues/events{/number}","events_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/events","assignees_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/assignees{/user}","branches_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/branches{/branch}","tags_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/tags","blobs_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/git/refs{/sha}","trees_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/statuses/{sha}","languages_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/languages","stargazers_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/stargazers","contributors_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/contributors","subscribers_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/subscribers","subscription_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/subscription","commits_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/commits{/sha}","git_commits_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/git/commits{/sha}","comments_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/comments{/number}","issue_comment_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/issues/comments{/number}","contents_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/contents/{+path}","compare_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/merges","archive_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/downloads","issues_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/issues{/number}","pulls_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/pulls{/number}","milestones_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/milestones{/number}","notifications_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/labels{/name}","releases_url":"https://api.github.com/repos/GaborApatiNagy/xenadmin/releases{/id}","created_at":"2014-01-14T10:41:45Z","updated_at":"2015-01-15T13:47:30Z","pushed_at":"2015-11-25T11:02:10Z","git_url":"git://github.com/GaborApatiNagy/xenadmin.git","ssh_url":"git@github.com:GaborApatiNagy/xenadmin.git","clone_url":"https://github.com/GaborApatiNagy/xenadmin.git","svn_url":"https://github.com/GaborApatiNagy/xenadmin","homepage":"","size":79103,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"xenserver:master","ref":"master","sha":"bf1bbd84757bbc5f3afa1e91c473e3c78b85ed29","user":{"login":"xenserver","id":4669806,"avatar_url":"https://avatars.githubusercontent.com/u/4669806?v=3","gravatar_id":"","url":"https://api.github.com/users/xenserver","html_url":"https://github.com/xenserver","followers_url":"https://api.github.com/users/xenserver/followers","following_url":"https://api.github.com/users/xenserver/following{/other_user}","gists_url":"https://api.github.com/users/xenserver/gists{/gist_id}","starred_url":"https://api.github.com/users/xenserver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xenserver/subscriptions","organizations_url":"https://api.github.com/users/xenserver/orgs","repos_url":"https://api.github.com/users/xenserver/repos","events_url":"https://api.github.com/users/xenserver/events{/privacy}","received_events_url":"https://api.github.com/users/xenserver/received_events","type":"Organization","site_admin":false},"repo":{"id":10915984,"name":"xenadmin","full_name":"xenserver/xenadmin","owner":{"login":"xenserver","id":4669806,"avatar_url":"https://avatars.githubusercontent.com/u/4669806?v=3","gravatar_id":"","url":"https://api.github.com/users/xenserver","html_url":"https://github.com/xenserver","followers_url":"https://api.github.com/users/xenserver/followers","following_url":"https://api.github.com/users/xenserver/following{/other_user}","gists_url":"https://api.github.com/users/xenserver/gists{/gist_id}","starred_url":"https://api.github.com/users/xenserver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xenserver/subscriptions","organizations_url":"https://api.github.com/users/xenserver/orgs","repos_url":"https://api.github.com/users/xenserver/repos","events_url":"https://api.github.com/users/xenserver/events{/privacy}","received_events_url":"https://api.github.com/users/xenserver/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xenserver/xenadmin","description":"XenCenter, the Windows management console for XenServer","fork":false,"url":"https://api.github.com/repos/xenserver/xenadmin","forks_url":"https://api.github.com/repos/xenserver/xenadmin/forks","keys_url":"https://api.github.com/repos/xenserver/xenadmin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xenserver/xenadmin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xenserver/xenadmin/teams","hooks_url":"https://api.github.com/repos/xenserver/xenadmin/hooks","issue_events_url":"https://api.github.com/repos/xenserver/xenadmin/issues/events{/number}","events_url":"https://api.github.com/repos/xenserver/xenadmin/events","assignees_url":"https://api.github.com/repos/xenserver/xenadmin/assignees{/user}","branches_url":"https://api.github.com/repos/xenserver/xenadmin/branches{/branch}","tags_url":"https://api.github.com/repos/xenserver/xenadmin/tags","blobs_url":"https://api.github.com/repos/xenserver/xenadmin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xenserver/xenadmin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xenserver/xenadmin/git/refs{/sha}","trees_url":"https://api.github.com/repos/xenserver/xenadmin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xenserver/xenadmin/statuses/{sha}","languages_url":"https://api.github.com/repos/xenserver/xenadmin/languages","stargazers_url":"https://api.github.com/repos/xenserver/xenadmin/stargazers","contributors_url":"https://api.github.com/repos/xenserver/xenadmin/contributors","subscribers_url":"https://api.github.com/repos/xenserver/xenadmin/subscribers","subscription_url":"https://api.github.com/repos/xenserver/xenadmin/subscription","commits_url":"https://api.github.com/repos/xenserver/xenadmin/commits{/sha}","git_commits_url":"https://api.github.com/repos/xenserver/xenadmin/git/commits{/sha}","comments_url":"https://api.github.com/repos/xenserver/xenadmin/comments{/number}","issue_comment_url":"https://api.github.com/repos/xenserver/xenadmin/issues/comments{/number}","contents_url":"https://api.github.com/repos/xenserver/xenadmin/contents/{+path}","compare_url":"https://api.github.com/repos/xenserver/xenadmin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xenserver/xenadmin/merges","archive_url":"https://api.github.com/repos/xenserver/xenadmin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xenserver/xenadmin/downloads","issues_url":"https://api.github.com/repos/xenserver/xenadmin/issues{/number}","pulls_url":"https://api.github.com/repos/xenserver/xenadmin/pulls{/number}","milestones_url":"https://api.github.com/repos/xenserver/xenadmin/milestones{/number}","notifications_url":"https://api.github.com/repos/xenserver/xenadmin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xenserver/xenadmin/labels{/name}","releases_url":"https://api.github.com/repos/xenserver/xenadmin/releases{/id}","created_at":"2013-06-24T18:10:24Z","updated_at":"2015-11-08T01:34:53Z","pushed_at":"2015-11-25T11:34:43Z","git_url":"git://github.com/xenserver/xenadmin.git","ssh_url":"git@github.com:xenserver/xenadmin.git","clone_url":"https://github.com/xenserver/xenadmin.git","svn_url":"https://github.com/xenserver/xenadmin","homepage":"","size":86561,"stargazers_count":97,"watchers_count":97,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":69,"mirror_url":null,"open_issues_count":8,"forks":69,"open_issues":8,"watchers":97,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xenserver/xenadmin/pulls/744"},"html":{"href":"https://github.com/xenserver/xenadmin/pull/744"},"issue":{"href":"https://api.github.com/repos/xenserver/xenadmin/issues/744"},"comments":{"href":"https://api.github.com/repos/xenserver/xenadmin/issues/744/comments"},"review_comments":{"href":"https://api.github.com/repos/xenserver/xenadmin/pulls/744/comments"},"review_comment":{"href":"https://api.github.com/repos/xenserver/xenadmin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xenserver/xenadmin/pulls/744/commits"},"statuses":{"href":"https://api.github.com/repos/xenserver/xenadmin/statuses/2e8e7afb7e74304bbcd82e7a3a65eca08781c46b"}}}}