{"action":"created","comment":{"url":"https://api.github.com/repos/OpenRA/OpenRA/pulls/comments/55871966","id":55871966,"diff_hunk":"@@ -85,7 +85,7 @@ public GameInfoStatsLogic(Widget widget, World world, OrderManager orderManager)\n \t\t\t\t}\n \n \t\t\t\tvar team = item.Get<LabelWidget>(\"TEAM\");\n-\t\t\t\tvar teamNumber = pp.PlayerReference.Playable ? ((client == null) ? 0 : client.Team) : pp.PlayerReference.Team;\n+\t\t\t\tvar teamNumber = pp.PlayerReference.Playable ? client.Team : pp.PlayerReference.Team;","path":"OpenRA.Mods.Common/Widgets/Logic/Ingame/GameInfoStatsLogic.cs","position":5,"original_position":5,"commit_id":"4a013c9c892d05f5e125feb1aa31d40744664262","original_commit_id":"ba958b195c2b4a22eadeb293fff3bb59e438547b","user":{"login":"RoosterDragon","id":3399086,"avatar_url":"https://avatars.githubusercontent.com/u/3399086?v=3","gravatar_id":"","url":"https://api.github.com/users/RoosterDragon","html_url":"https://github.com/RoosterDragon","followers_url":"https://api.github.com/users/RoosterDragon/followers","following_url":"https://api.github.com/users/RoosterDragon/following{/other_user}","gists_url":"https://api.github.com/users/RoosterDragon/gists{/gist_id}","starred_url":"https://api.github.com/users/RoosterDragon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoosterDragon/subscriptions","organizations_url":"https://api.github.com/users/RoosterDragon/orgs","repos_url":"https://api.github.com/users/RoosterDragon/repos","events_url":"https://api.github.com/users/RoosterDragon/events{/privacy}","received_events_url":"https://api.github.com/users/RoosterDragon/received_events","type":"User","site_admin":false},"body":"There's also some other checks for a null client you would need to remove, if you do believe the null check is redundant.","created_at":"2016-03-11T18:58:13Z","updated_at":"2016-03-11T18:58:13Z","html_url":"https://github.com/OpenRA/OpenRA/pull/10905#discussion_r55871966","pull_request_url":"https://api.github.com/repos/OpenRA/OpenRA/pulls/10905","_links":{"self":{"href":"https://api.github.com/repos/OpenRA/OpenRA/pulls/comments/55871966"},"html":{"href":"https://github.com/OpenRA/OpenRA/pull/10905#discussion_r55871966"},"pull_request":{"href":"https://api.github.com/repos/OpenRA/OpenRA/pulls/10905"}}},"pull_request":{"url":"https://api.github.com/repos/OpenRA/OpenRA/pulls/10905","id":62449713,"html_url":"https://github.com/OpenRA/OpenRA/pull/10905","diff_url":"https://github.com/OpenRA/OpenRA/pull/10905.diff","patch_url":"https://github.com/OpenRA/OpenRA/pull/10905.patch","issue_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/10905","number":10905,"state":"open","locked":false,"title":"Fix coverity issues","user":{"login":"obrakmann","id":4331210,"avatar_url":"https://avatars.githubusercontent.com/u/4331210?v=3","gravatar_id":"","url":"https://api.github.com/users/obrakmann","html_url":"https://github.com/obrakmann","followers_url":"https://api.github.com/users/obrakmann/followers","following_url":"https://api.github.com/users/obrakmann/following{/other_user}","gists_url":"https://api.github.com/users/obrakmann/gists{/gist_id}","starred_url":"https://api.github.com/users/obrakmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obrakmann/subscriptions","organizations_url":"https://api.github.com/users/obrakmann/orgs","repos_url":"https://api.github.com/users/obrakmann/repos","events_url":"https://api.github.com/users/obrakmann/events{/privacy}","received_events_url":"https://api.github.com/users/obrakmann/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-10T20:20:58Z","updated_at":"2016-03-11T18:58:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"60460fec975bc4b58ff8c1f0b8d3225ee649de4f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OpenRA/OpenRA/pulls/10905/commits","review_comments_url":"https://api.github.com/repos/OpenRA/OpenRA/pulls/10905/comments","review_comment_url":"https://api.github.com/repos/OpenRA/OpenRA/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/10905/comments","statuses_url":"https://api.github.com/repos/OpenRA/OpenRA/statuses/4a013c9c892d05f5e125feb1aa31d40744664262","head":{"label":"obrakmann:fix-coverity-issues","ref":"fix-coverity-issues","sha":"4a013c9c892d05f5e125feb1aa31d40744664262","user":{"login":"obrakmann","id":4331210,"avatar_url":"https://avatars.githubusercontent.com/u/4331210?v=3","gravatar_id":"","url":"https://api.github.com/users/obrakmann","html_url":"https://github.com/obrakmann","followers_url":"https://api.github.com/users/obrakmann/followers","following_url":"https://api.github.com/users/obrakmann/following{/other_user}","gists_url":"https://api.github.com/users/obrakmann/gists{/gist_id}","starred_url":"https://api.github.com/users/obrakmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obrakmann/subscriptions","organizations_url":"https://api.github.com/users/obrakmann/orgs","repos_url":"https://api.github.com/users/obrakmann/repos","events_url":"https://api.github.com/users/obrakmann/events{/privacy}","received_events_url":"https://api.github.com/users/obrakmann/received_events","type":"User","site_admin":false},"repo":{"id":15652960,"name":"OpenRA","full_name":"obrakmann/OpenRA","owner":{"login":"obrakmann","id":4331210,"avatar_url":"https://avatars.githubusercontent.com/u/4331210?v=3","gravatar_id":"","url":"https://api.github.com/users/obrakmann","html_url":"https://github.com/obrakmann","followers_url":"https://api.github.com/users/obrakmann/followers","following_url":"https://api.github.com/users/obrakmann/following{/other_user}","gists_url":"https://api.github.com/users/obrakmann/gists{/gist_id}","starred_url":"https://api.github.com/users/obrakmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obrakmann/subscriptions","organizations_url":"https://api.github.com/users/obrakmann/orgs","repos_url":"https://api.github.com/users/obrakmann/repos","events_url":"https://api.github.com/users/obrakmann/events{/privacy}","received_events_url":"https://api.github.com/users/obrakmann/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/obrakmann/OpenRA","description":"An open-source implementation of the Red Alert engine using .NET/mono and OpenGL. Runs on Windows, Linux and Mac OS X.","fork":true,"url":"https://api.github.com/repos/obrakmann/OpenRA","forks_url":"https://api.github.com/repos/obrakmann/OpenRA/forks","keys_url":"https://api.github.com/repos/obrakmann/OpenRA/keys{/key_id}","collaborators_url":"https://api.github.com/repos/obrakmann/OpenRA/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/obrakmann/OpenRA/teams","hooks_url":"https://api.github.com/repos/obrakmann/OpenRA/hooks","issue_events_url":"https://api.github.com/repos/obrakmann/OpenRA/issues/events{/number}","events_url":"https://api.github.com/repos/obrakmann/OpenRA/events","assignees_url":"https://api.github.com/repos/obrakmann/OpenRA/assignees{/user}","branches_url":"https://api.github.com/repos/obrakmann/OpenRA/branches{/branch}","tags_url":"https://api.github.com/repos/obrakmann/OpenRA/tags","blobs_url":"https://api.github.com/repos/obrakmann/OpenRA/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/obrakmann/OpenRA/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/obrakmann/OpenRA/git/refs{/sha}","trees_url":"https://api.github.com/repos/obrakmann/OpenRA/git/trees{/sha}","statuses_url":"https://api.github.com/repos/obrakmann/OpenRA/statuses/{sha}","languages_url":"https://api.github.com/repos/obrakmann/OpenRA/languages","stargazers_url":"https://api.github.com/repos/obrakmann/OpenRA/stargazers","contributors_url":"https://api.github.com/repos/obrakmann/OpenRA/contributors","subscribers_url":"https://api.github.com/repos/obrakmann/OpenRA/subscribers","subscription_url":"https://api.github.com/repos/obrakmann/OpenRA/subscription","commits_url":"https://api.github.com/repos/obrakmann/OpenRA/commits{/sha}","git_commits_url":"https://api.github.com/repos/obrakmann/OpenRA/git/commits{/sha}","comments_url":"https://api.github.com/repos/obrakmann/OpenRA/comments{/number}","issue_comment_url":"https://api.github.com/repos/obrakmann/OpenRA/issues/comments{/number}","contents_url":"https://api.github.com/repos/obrakmann/OpenRA/contents/{+path}","compare_url":"https://api.github.com/repos/obrakmann/OpenRA/compare/{base}...{head}","merges_url":"https://api.github.com/repos/obrakmann/OpenRA/merges","archive_url":"https://api.github.com/repos/obrakmann/OpenRA/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/obrakmann/OpenRA/downloads","issues_url":"https://api.github.com/repos/obrakmann/OpenRA/issues{/number}","pulls_url":"https://api.github.com/repos/obrakmann/OpenRA/pulls{/number}","milestones_url":"https://api.github.com/repos/obrakmann/OpenRA/milestones{/number}","notifications_url":"https://api.github.com/repos/obrakmann/OpenRA/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/obrakmann/OpenRA/labels{/name}","releases_url":"https://api.github.com/repos/obrakmann/OpenRA/releases{/id}","deployments_url":"https://api.github.com/repos/obrakmann/OpenRA/deployments","created_at":"2014-01-05T15:00:11Z","updated_at":"2015-02-14T21:14:50Z","pushed_at":"2016-03-10T21:15:38Z","git_url":"git://github.com/obrakmann/OpenRA.git","ssh_url":"git@github.com:obrakmann/OpenRA.git","clone_url":"https://github.com/obrakmann/OpenRA.git","svn_url":"https://github.com/obrakmann/OpenRA","homepage":"http://open-ra.org","size":102986,"stargazers_count":1,"watchers_count":1,"language":"C#","has_issues":true,"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":1,"default_branch":"bleed"}},"base":{"label":"OpenRA:bleed","ref":"bleed","sha":"2d98e41f11f4c03f52f470fc04827c6ec53690f1","user":{"login":"OpenRA","id":409046,"avatar_url":"https://avatars.githubusercontent.com/u/409046?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenRA","html_url":"https://github.com/OpenRA","followers_url":"https://api.github.com/users/OpenRA/followers","following_url":"https://api.github.com/users/OpenRA/following{/other_user}","gists_url":"https://api.github.com/users/OpenRA/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenRA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenRA/subscriptions","organizations_url":"https://api.github.com/users/OpenRA/orgs","repos_url":"https://api.github.com/users/OpenRA/repos","events_url":"https://api.github.com/users/OpenRA/events{/privacy}","received_events_url":"https://api.github.com/users/OpenRA/received_events","type":"Organization","site_admin":false},"repo":{"id":959908,"name":"OpenRA","full_name":"OpenRA/OpenRA","owner":{"login":"OpenRA","id":409046,"avatar_url":"https://avatars.githubusercontent.com/u/409046?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenRA","html_url":"https://github.com/OpenRA","followers_url":"https://api.github.com/users/OpenRA/followers","following_url":"https://api.github.com/users/OpenRA/following{/other_user}","gists_url":"https://api.github.com/users/OpenRA/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenRA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenRA/subscriptions","organizations_url":"https://api.github.com/users/OpenRA/orgs","repos_url":"https://api.github.com/users/OpenRA/repos","events_url":"https://api.github.com/users/OpenRA/events{/privacy}","received_events_url":"https://api.github.com/users/OpenRA/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenRA/OpenRA","description":"Open Source real-time strategy game engine for early Westwood games such as Command & Conquer: Red Alert written in C# using SDL and OpenGL. Runs on Windows, Linux, *BSD and Mac OS X.","fork":false,"url":"https://api.github.com/repos/OpenRA/OpenRA","forks_url":"https://api.github.com/repos/OpenRA/OpenRA/forks","keys_url":"https://api.github.com/repos/OpenRA/OpenRA/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenRA/OpenRA/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenRA/OpenRA/teams","hooks_url":"https://api.github.com/repos/OpenRA/OpenRA/hooks","issue_events_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/events{/number}","events_url":"https://api.github.com/repos/OpenRA/OpenRA/events","assignees_url":"https://api.github.com/repos/OpenRA/OpenRA/assignees{/user}","branches_url":"https://api.github.com/repos/OpenRA/OpenRA/branches{/branch}","tags_url":"https://api.github.com/repos/OpenRA/OpenRA/tags","blobs_url":"https://api.github.com/repos/OpenRA/OpenRA/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenRA/OpenRA/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenRA/OpenRA/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenRA/OpenRA/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenRA/OpenRA/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenRA/OpenRA/languages","stargazers_url":"https://api.github.com/repos/OpenRA/OpenRA/stargazers","contributors_url":"https://api.github.com/repos/OpenRA/OpenRA/contributors","subscribers_url":"https://api.github.com/repos/OpenRA/OpenRA/subscribers","subscription_url":"https://api.github.com/repos/OpenRA/OpenRA/subscription","commits_url":"https://api.github.com/repos/OpenRA/OpenRA/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenRA/OpenRA/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenRA/OpenRA/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenRA/OpenRA/contents/{+path}","compare_url":"https://api.github.com/repos/OpenRA/OpenRA/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenRA/OpenRA/merges","archive_url":"https://api.github.com/repos/OpenRA/OpenRA/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenRA/OpenRA/downloads","issues_url":"https://api.github.com/repos/OpenRA/OpenRA/issues{/number}","pulls_url":"https://api.github.com/repos/OpenRA/OpenRA/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenRA/OpenRA/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenRA/OpenRA/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenRA/OpenRA/labels{/name}","releases_url":"https://api.github.com/repos/OpenRA/OpenRA/releases{/id}","deployments_url":"https://api.github.com/repos/OpenRA/OpenRA/deployments","created_at":"2010-10-04T07:38:05Z","updated_at":"2016-03-11T10:12:53Z","pushed_at":"2016-03-11T16:48:44Z","git_url":"git://github.com/OpenRA/OpenRA.git","ssh_url":"git@github.com:OpenRA/OpenRA.git","clone_url":"https://github.com/OpenRA/OpenRA.git","svn_url":"https://github.com/OpenRA/OpenRA","homepage":"http://www.openra.net","size":145048,"stargazers_count":2643,"watchers_count":2643,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":899,"mirror_url":null,"open_issues_count":997,"forks":899,"open_issues":997,"watchers":2643,"default_branch":"bleed"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenRA/OpenRA/pulls/10905"},"html":{"href":"https://github.com/OpenRA/OpenRA/pull/10905"},"issue":{"href":"https://api.github.com/repos/OpenRA/OpenRA/issues/10905"},"comments":{"href":"https://api.github.com/repos/OpenRA/OpenRA/issues/10905/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenRA/OpenRA/pulls/10905/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenRA/OpenRA/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenRA/OpenRA/pulls/10905/commits"},"statuses":{"href":"https://api.github.com/repos/OpenRA/OpenRA/statuses/4a013c9c892d05f5e125feb1aa31d40744664262"}}}}