{"action":"opened","number":37,"pull_request":{"url":"https://api.github.com/repos/twitter/twitter-server/pulls/37","id":63476643,"html_url":"https://github.com/twitter/twitter-server/pull/37","diff_url":"https://github.com/twitter/twitter-server/pull/37.diff","patch_url":"https://github.com/twitter/twitter-server/pull/37.patch","issue_url":"https://api.github.com/repos/twitter/twitter-server/issues/37","number":37,"state":"open","locked":false,"title":"Fix NullPointerException in JvmStats on some platforms.","user":{"login":"olix0r","id":240738,"avatar_url":"https://avatars.githubusercontent.com/u/240738?v=3","gravatar_id":"","url":"https://api.github.com/users/olix0r","html_url":"https://github.com/olix0r","followers_url":"https://api.github.com/users/olix0r/followers","following_url":"https://api.github.com/users/olix0r/following{/other_user}","gists_url":"https://api.github.com/users/olix0r/gists{/gist_id}","starred_url":"https://api.github.com/users/olix0r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olix0r/subscriptions","organizations_url":"https://api.github.com/users/olix0r/orgs","repos_url":"https://api.github.com/users/olix0r/repos","events_url":"https://api.github.com/users/olix0r/events{/privacy}","received_events_url":"https://api.github.com/users/olix0r/received_events","type":"User","site_admin":false},"body":"Problem\r\n\r\nExplain the context and why you're making that change.  What is the\r\nproblem you're trying to solve? In some cases there is not a problem\r\nand this can be thought of being the motivation for your change.\r\n\r\nSolution\r\n\r\nDescribe the modifications you've done.\r\n\r\nResult\r\n\r\nWhat will change as a result of your pull request? Note that sometimes\r\nthis section is unnecessary because it is self-explanatory based on\r\nthe solution.\r\n\r\nProblem\r\n\r\nAccording to documentation, two ManagementFactory calls may return null on some\r\nplatforms.  TwitterServer's JvmStats do not handle this case well, which\r\nresults in NullPointerExceptions during startup.\r\n\r\nSolution\r\n\r\nHandle the null case explicitly.","created_at":"2016-03-19T19:38:49Z","updated_at":"2016-03-19T19:38:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/twitter/twitter-server/pulls/37/commits","review_comments_url":"https://api.github.com/repos/twitter/twitter-server/pulls/37/comments","review_comment_url":"https://api.github.com/repos/twitter/twitter-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/twitter/twitter-server/issues/37/comments","statuses_url":"https://api.github.com/repos/twitter/twitter-server/statuses/e05175c452c81df3a2cf42c1f6f8414cd9c93f28","head":{"label":"BuoyantIO:ver/fix-null-beans","ref":"ver/fix-null-beans","sha":"e05175c452c81df3a2cf42c1f6f8414cd9c93f28","user":{"login":"BuoyantIO","id":10824329,"avatar_url":"https://avatars.githubusercontent.com/u/10824329?v=3","gravatar_id":"","url":"https://api.github.com/users/BuoyantIO","html_url":"https://github.com/BuoyantIO","followers_url":"https://api.github.com/users/BuoyantIO/followers","following_url":"https://api.github.com/users/BuoyantIO/following{/other_user}","gists_url":"https://api.github.com/users/BuoyantIO/gists{/gist_id}","starred_url":"https://api.github.com/users/BuoyantIO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BuoyantIO/subscriptions","organizations_url":"https://api.github.com/users/BuoyantIO/orgs","repos_url":"https://api.github.com/users/BuoyantIO/repos","events_url":"https://api.github.com/users/BuoyantIO/events{/privacy}","received_events_url":"https://api.github.com/users/BuoyantIO/received_events","type":"Organization","site_admin":false},"repo":{"id":38073438,"name":"twitter-server","full_name":"BuoyantIO/twitter-server","owner":{"login":"BuoyantIO","id":10824329,"avatar_url":"https://avatars.githubusercontent.com/u/10824329?v=3","gravatar_id":"","url":"https://api.github.com/users/BuoyantIO","html_url":"https://github.com/BuoyantIO","followers_url":"https://api.github.com/users/BuoyantIO/followers","following_url":"https://api.github.com/users/BuoyantIO/following{/other_user}","gists_url":"https://api.github.com/users/BuoyantIO/gists{/gist_id}","starred_url":"https://api.github.com/users/BuoyantIO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BuoyantIO/subscriptions","organizations_url":"https://api.github.com/users/BuoyantIO/orgs","repos_url":"https://api.github.com/users/BuoyantIO/repos","events_url":"https://api.github.com/users/BuoyantIO/events{/privacy}","received_events_url":"https://api.github.com/users/BuoyantIO/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BuoyantIO/twitter-server","description":"Twitter-Server defines a template from which services at Twitter are built","fork":true,"url":"https://api.github.com/repos/BuoyantIO/twitter-server","forks_url":"https://api.github.com/repos/BuoyantIO/twitter-server/forks","keys_url":"https://api.github.com/repos/BuoyantIO/twitter-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BuoyantIO/twitter-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BuoyantIO/twitter-server/teams","hooks_url":"https://api.github.com/repos/BuoyantIO/twitter-server/hooks","issue_events_url":"https://api.github.com/repos/BuoyantIO/twitter-server/issues/events{/number}","events_url":"https://api.github.com/repos/BuoyantIO/twitter-server/events","assignees_url":"https://api.github.com/repos/BuoyantIO/twitter-server/assignees{/user}","branches_url":"https://api.github.com/repos/BuoyantIO/twitter-server/branches{/branch}","tags_url":"https://api.github.com/repos/BuoyantIO/twitter-server/tags","blobs_url":"https://api.github.com/repos/BuoyantIO/twitter-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BuoyantIO/twitter-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BuoyantIO/twitter-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/BuoyantIO/twitter-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BuoyantIO/twitter-server/statuses/{sha}","languages_url":"https://api.github.com/repos/BuoyantIO/twitter-server/languages","stargazers_url":"https://api.github.com/repos/BuoyantIO/twitter-server/stargazers","contributors_url":"https://api.github.com/repos/BuoyantIO/twitter-server/contributors","subscribers_url":"https://api.github.com/repos/BuoyantIO/twitter-server/subscribers","subscription_url":"https://api.github.com/repos/BuoyantIO/twitter-server/subscription","commits_url":"https://api.github.com/repos/BuoyantIO/twitter-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/BuoyantIO/twitter-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/BuoyantIO/twitter-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/BuoyantIO/twitter-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/BuoyantIO/twitter-server/contents/{+path}","compare_url":"https://api.github.com/repos/BuoyantIO/twitter-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BuoyantIO/twitter-server/merges","archive_url":"https://api.github.com/repos/BuoyantIO/twitter-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BuoyantIO/twitter-server/downloads","issues_url":"https://api.github.com/repos/BuoyantIO/twitter-server/issues{/number}","pulls_url":"https://api.github.com/repos/BuoyantIO/twitter-server/pulls{/number}","milestones_url":"https://api.github.com/repos/BuoyantIO/twitter-server/milestones{/number}","notifications_url":"https://api.github.com/repos/BuoyantIO/twitter-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BuoyantIO/twitter-server/labels{/name}","releases_url":"https://api.github.com/repos/BuoyantIO/twitter-server/releases{/id}","deployments_url":"https://api.github.com/repos/BuoyantIO/twitter-server/deployments","created_at":"2015-06-25T20:50:03Z","updated_at":"2016-02-20T14:53:05Z","pushed_at":"2016-03-19T19:37:44Z","git_url":"git://github.com/BuoyantIO/twitter-server.git","ssh_url":"git@github.com:BuoyantIO/twitter-server.git","clone_url":"https://github.com/BuoyantIO/twitter-server.git","svn_url":"https://github.com/BuoyantIO/twitter-server","homepage":"http://twitter.github.io/twitter-server/","size":3262,"stargazers_count":2,"watchers_count":2,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":2,"default_branch":"master"}},"base":{"label":"twitter:develop","ref":"develop","sha":"a569edc24aca5935389d8ae498aa5abdb05cdcc1","user":{"login":"twitter","id":50278,"avatar_url":"https://avatars.githubusercontent.com/u/50278?v=3","gravatar_id":"","url":"https://api.github.com/users/twitter","html_url":"https://github.com/twitter","followers_url":"https://api.github.com/users/twitter/followers","following_url":"https://api.github.com/users/twitter/following{/other_user}","gists_url":"https://api.github.com/users/twitter/gists{/gist_id}","starred_url":"https://api.github.com/users/twitter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twitter/subscriptions","organizations_url":"https://api.github.com/users/twitter/orgs","repos_url":"https://api.github.com/users/twitter/repos","events_url":"https://api.github.com/users/twitter/events{/privacy}","received_events_url":"https://api.github.com/users/twitter/received_events","type":"Organization","site_admin":false},"repo":{"id":9607155,"name":"twitter-server","full_name":"twitter/twitter-server","owner":{"login":"twitter","id":50278,"avatar_url":"https://avatars.githubusercontent.com/u/50278?v=3","gravatar_id":"","url":"https://api.github.com/users/twitter","html_url":"https://github.com/twitter","followers_url":"https://api.github.com/users/twitter/followers","following_url":"https://api.github.com/users/twitter/following{/other_user}","gists_url":"https://api.github.com/users/twitter/gists{/gist_id}","starred_url":"https://api.github.com/users/twitter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twitter/subscriptions","organizations_url":"https://api.github.com/users/twitter/orgs","repos_url":"https://api.github.com/users/twitter/repos","events_url":"https://api.github.com/users/twitter/events{/privacy}","received_events_url":"https://api.github.com/users/twitter/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/twitter/twitter-server","description":"Twitter-Server defines a template from which services at Twitter are built","fork":false,"url":"https://api.github.com/repos/twitter/twitter-server","forks_url":"https://api.github.com/repos/twitter/twitter-server/forks","keys_url":"https://api.github.com/repos/twitter/twitter-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/twitter/twitter-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/twitter/twitter-server/teams","hooks_url":"https://api.github.com/repos/twitter/twitter-server/hooks","issue_events_url":"https://api.github.com/repos/twitter/twitter-server/issues/events{/number}","events_url":"https://api.github.com/repos/twitter/twitter-server/events","assignees_url":"https://api.github.com/repos/twitter/twitter-server/assignees{/user}","branches_url":"https://api.github.com/repos/twitter/twitter-server/branches{/branch}","tags_url":"https://api.github.com/repos/twitter/twitter-server/tags","blobs_url":"https://api.github.com/repos/twitter/twitter-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/twitter/twitter-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/twitter/twitter-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/twitter/twitter-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/twitter/twitter-server/statuses/{sha}","languages_url":"https://api.github.com/repos/twitter/twitter-server/languages","stargazers_url":"https://api.github.com/repos/twitter/twitter-server/stargazers","contributors_url":"https://api.github.com/repos/twitter/twitter-server/contributors","subscribers_url":"https://api.github.com/repos/twitter/twitter-server/subscribers","subscription_url":"https://api.github.com/repos/twitter/twitter-server/subscription","commits_url":"https://api.github.com/repos/twitter/twitter-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/twitter/twitter-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/twitter/twitter-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/twitter/twitter-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/twitter/twitter-server/contents/{+path}","compare_url":"https://api.github.com/repos/twitter/twitter-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/twitter/twitter-server/merges","archive_url":"https://api.github.com/repos/twitter/twitter-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/twitter/twitter-server/downloads","issues_url":"https://api.github.com/repos/twitter/twitter-server/issues{/number}","pulls_url":"https://api.github.com/repos/twitter/twitter-server/pulls{/number}","milestones_url":"https://api.github.com/repos/twitter/twitter-server/milestones{/number}","notifications_url":"https://api.github.com/repos/twitter/twitter-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/twitter/twitter-server/labels{/name}","releases_url":"https://api.github.com/repos/twitter/twitter-server/releases{/id}","deployments_url":"https://api.github.com/repos/twitter/twitter-server/deployments","created_at":"2013-04-22T19:34:36Z","updated_at":"2016-03-18T15:27:17Z","pushed_at":"2016-03-18T19:43:08Z","git_url":"git://github.com/twitter/twitter-server.git","ssh_url":"git@github.com:twitter/twitter-server.git","clone_url":"https://github.com/twitter/twitter-server.git","svn_url":"https://github.com/twitter/twitter-server","homepage":"http://twitter.github.io/twitter-server/","size":3758,"stargazers_count":493,"watchers_count":493,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":97,"mirror_url":null,"open_issues_count":2,"forks":97,"open_issues":2,"watchers":493,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/twitter/twitter-server/pulls/37"},"html":{"href":"https://github.com/twitter/twitter-server/pull/37"},"issue":{"href":"https://api.github.com/repos/twitter/twitter-server/issues/37"},"comments":{"href":"https://api.github.com/repos/twitter/twitter-server/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/twitter/twitter-server/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/twitter/twitter-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/twitter/twitter-server/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/twitter/twitter-server/statuses/e05175c452c81df3a2cf42c1f6f8414cd9c93f28"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":16,"deletions":10,"changed_files":1}}