{"action":"opened","number":4326,"pull_request":{"url":"https://api.github.com/repos/arduino/Arduino/pulls/4326","id":54281208,"html_url":"https://github.com/arduino/Arduino/pull/4326","diff_url":"https://github.com/arduino/Arduino/pull/4326.diff","patch_url":"https://github.com/arduino/Arduino/pull/4326.patch","issue_url":"https://api.github.com/repos/arduino/Arduino/issues/4326","number":4326,"state":"open","locked":false,"title":"Fixed NPE in some rare combinations of JSON files","user":{"login":"cmaglie","id":423515,"avatar_url":"https://avatars.githubusercontent.com/u/423515?v=3","gravatar_id":"","url":"https://api.github.com/users/cmaglie","html_url":"https://github.com/cmaglie","followers_url":"https://api.github.com/users/cmaglie/followers","following_url":"https://api.github.com/users/cmaglie/following{/other_user}","gists_url":"https://api.github.com/users/cmaglie/gists{/gist_id}","starred_url":"https://api.github.com/users/cmaglie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmaglie/subscriptions","organizations_url":"https://api.github.com/users/cmaglie/orgs","repos_url":"https://api.github.com/users/cmaglie/repos","events_url":"https://api.github.com/users/cmaglie/events{/privacy}","received_events_url":"https://api.github.com/users/cmaglie/received_events","type":"User","site_admin":false},"body":"The error triggered inside ContributioIndexer.mergeContributions() while trying to remove a platform:\r\n\r\n    if (platform != null) {\r\n      targetPackage.getPlatforms().remove(platform);\r\n    }\r\n\r\nthe remove() method calls ContributedPlatform.equals() to find the element to remove but since the parentPackage fields are resolved *after* merging contributions, the equls() method will fail with\r\na NullPointerException.","created_at":"2015-12-21T17:23:12Z","updated_at":"2015-12-21T17:23:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"cmaglie","id":423515,"avatar_url":"https://avatars.githubusercontent.com/u/423515?v=3","gravatar_id":"","url":"https://api.github.com/users/cmaglie","html_url":"https://github.com/cmaglie","followers_url":"https://api.github.com/users/cmaglie/followers","following_url":"https://api.github.com/users/cmaglie/following{/other_user}","gists_url":"https://api.github.com/users/cmaglie/gists{/gist_id}","starred_url":"https://api.github.com/users/cmaglie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmaglie/subscriptions","organizations_url":"https://api.github.com/users/cmaglie/orgs","repos_url":"https://api.github.com/users/cmaglie/repos","events_url":"https://api.github.com/users/cmaglie/events{/privacy}","received_events_url":"https://api.github.com/users/cmaglie/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/arduino/Arduino/milestones/17","html_url":"https://github.com/arduino/Arduino/milestones/Release%201.6.8","labels_url":"https://api.github.com/repos/arduino/Arduino/milestones/17/labels","id":1454327,"number":17,"title":"Release 1.6.8","description":"","creator":{"login":"ffissore","id":510465,"avatar_url":"https://avatars.githubusercontent.com/u/510465?v=3","gravatar_id":"","url":"https://api.github.com/users/ffissore","html_url":"https://github.com/ffissore","followers_url":"https://api.github.com/users/ffissore/followers","following_url":"https://api.github.com/users/ffissore/following{/other_user}","gists_url":"https://api.github.com/users/ffissore/gists{/gist_id}","starred_url":"https://api.github.com/users/ffissore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ffissore/subscriptions","organizations_url":"https://api.github.com/users/ffissore/orgs","repos_url":"https://api.github.com/users/ffissore/repos","events_url":"https://api.github.com/users/ffissore/events{/privacy}","received_events_url":"https://api.github.com/users/ffissore/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":7,"state":"open","created_at":"2015-12-10T15:39:15Z","updated_at":"2015-12-21T17:23:12Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/arduino/Arduino/pulls/4326/commits","review_comments_url":"https://api.github.com/repos/arduino/Arduino/pulls/4326/comments","review_comment_url":"https://api.github.com/repos/arduino/Arduino/pulls/comments{/number}","comments_url":"https://api.github.com/repos/arduino/Arduino/issues/4326/comments","statuses_url":"https://api.github.com/repos/arduino/Arduino/statuses/7c089c96d3f607aafcef08af09cdbe56a4b03ab7","head":{"label":"cmaglie:fix-npe-platform-json","ref":"fix-npe-platform-json","sha":"7c089c96d3f607aafcef08af09cdbe56a4b03ab7","user":{"login":"cmaglie","id":423515,"avatar_url":"https://avatars.githubusercontent.com/u/423515?v=3","gravatar_id":"","url":"https://api.github.com/users/cmaglie","html_url":"https://github.com/cmaglie","followers_url":"https://api.github.com/users/cmaglie/followers","following_url":"https://api.github.com/users/cmaglie/following{/other_user}","gists_url":"https://api.github.com/users/cmaglie/gists{/gist_id}","starred_url":"https://api.github.com/users/cmaglie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmaglie/subscriptions","organizations_url":"https://api.github.com/users/cmaglie/orgs","repos_url":"https://api.github.com/users/cmaglie/repos","events_url":"https://api.github.com/users/cmaglie/events{/privacy}","received_events_url":"https://api.github.com/users/cmaglie/received_events","type":"User","site_admin":false},"repo":{"id":954404,"name":"Arduino","full_name":"cmaglie/Arduino","owner":{"login":"cmaglie","id":423515,"avatar_url":"https://avatars.githubusercontent.com/u/423515?v=3","gravatar_id":"","url":"https://api.github.com/users/cmaglie","html_url":"https://github.com/cmaglie","followers_url":"https://api.github.com/users/cmaglie/followers","following_url":"https://api.github.com/users/cmaglie/following{/other_user}","gists_url":"https://api.github.com/users/cmaglie/gists{/gist_id}","starred_url":"https://api.github.com/users/cmaglie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmaglie/subscriptions","organizations_url":"https://api.github.com/users/cmaglie/orgs","repos_url":"https://api.github.com/users/cmaglie/repos","events_url":"https://api.github.com/users/cmaglie/events{/privacy}","received_events_url":"https://api.github.com/users/cmaglie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cmaglie/Arduino","description":"open-source electronics prototyping platform","fork":true,"url":"https://api.github.com/repos/cmaglie/Arduino","forks_url":"https://api.github.com/repos/cmaglie/Arduino/forks","keys_url":"https://api.github.com/repos/cmaglie/Arduino/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cmaglie/Arduino/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cmaglie/Arduino/teams","hooks_url":"https://api.github.com/repos/cmaglie/Arduino/hooks","issue_events_url":"https://api.github.com/repos/cmaglie/Arduino/issues/events{/number}","events_url":"https://api.github.com/repos/cmaglie/Arduino/events","assignees_url":"https://api.github.com/repos/cmaglie/Arduino/assignees{/user}","branches_url":"https://api.github.com/repos/cmaglie/Arduino/branches{/branch}","tags_url":"https://api.github.com/repos/cmaglie/Arduino/tags","blobs_url":"https://api.github.com/repos/cmaglie/Arduino/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cmaglie/Arduino/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cmaglie/Arduino/git/refs{/sha}","trees_url":"https://api.github.com/repos/cmaglie/Arduino/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cmaglie/Arduino/statuses/{sha}","languages_url":"https://api.github.com/repos/cmaglie/Arduino/languages","stargazers_url":"https://api.github.com/repos/cmaglie/Arduino/stargazers","contributors_url":"https://api.github.com/repos/cmaglie/Arduino/contributors","subscribers_url":"https://api.github.com/repos/cmaglie/Arduino/subscribers","subscription_url":"https://api.github.com/repos/cmaglie/Arduino/subscription","commits_url":"https://api.github.com/repos/cmaglie/Arduino/commits{/sha}","git_commits_url":"https://api.github.com/repos/cmaglie/Arduino/git/commits{/sha}","comments_url":"https://api.github.com/repos/cmaglie/Arduino/comments{/number}","issue_comment_url":"https://api.github.com/repos/cmaglie/Arduino/issues/comments{/number}","contents_url":"https://api.github.com/repos/cmaglie/Arduino/contents/{+path}","compare_url":"https://api.github.com/repos/cmaglie/Arduino/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cmaglie/Arduino/merges","archive_url":"https://api.github.com/repos/cmaglie/Arduino/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cmaglie/Arduino/downloads","issues_url":"https://api.github.com/repos/cmaglie/Arduino/issues{/number}","pulls_url":"https://api.github.com/repos/cmaglie/Arduino/pulls{/number}","milestones_url":"https://api.github.com/repos/cmaglie/Arduino/milestones{/number}","notifications_url":"https://api.github.com/repos/cmaglie/Arduino/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cmaglie/Arduino/labels{/name}","releases_url":"https://api.github.com/repos/cmaglie/Arduino/releases{/id}","created_at":"2010-10-01T14:44:01Z","updated_at":"2015-06-30T06:43:10Z","pushed_at":"2015-12-21T17:21:21Z","git_url":"git://github.com/cmaglie/Arduino.git","ssh_url":"git@github.com:cmaglie/Arduino.git","clone_url":"https://github.com/cmaglie/Arduino.git","svn_url":"https://github.com/cmaglie/Arduino","homepage":"http://www.arduino.cc/","size":1261173,"stargazers_count":12,"watchers_count":12,"language":"HTML","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":0,"forks":4,"open_issues":0,"watchers":12,"default_branch":"master"}},"base":{"label":"arduino:master","ref":"master","sha":"fa4876b7b1845d5e7b93590e066ad976125aa7c3","user":{"login":"arduino","id":379109,"avatar_url":"https://avatars.githubusercontent.com/u/379109?v=3","gravatar_id":"","url":"https://api.github.com/users/arduino","html_url":"https://github.com/arduino","followers_url":"https://api.github.com/users/arduino/followers","following_url":"https://api.github.com/users/arduino/following{/other_user}","gists_url":"https://api.github.com/users/arduino/gists{/gist_id}","starred_url":"https://api.github.com/users/arduino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arduino/subscriptions","organizations_url":"https://api.github.com/users/arduino/orgs","repos_url":"https://api.github.com/users/arduino/repos","events_url":"https://api.github.com/users/arduino/events{/privacy}","received_events_url":"https://api.github.com/users/arduino/received_events","type":"Organization","site_admin":false},"repo":{"id":919161,"name":"Arduino","full_name":"arduino/Arduino","owner":{"login":"arduino","id":379109,"avatar_url":"https://avatars.githubusercontent.com/u/379109?v=3","gravatar_id":"","url":"https://api.github.com/users/arduino","html_url":"https://github.com/arduino","followers_url":"https://api.github.com/users/arduino/followers","following_url":"https://api.github.com/users/arduino/following{/other_user}","gists_url":"https://api.github.com/users/arduino/gists{/gist_id}","starred_url":"https://api.github.com/users/arduino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arduino/subscriptions","organizations_url":"https://api.github.com/users/arduino/orgs","repos_url":"https://api.github.com/users/arduino/repos","events_url":"https://api.github.com/users/arduino/events{/privacy}","received_events_url":"https://api.github.com/users/arduino/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/arduino/Arduino","description":"open-source electronics prototyping platform","fork":false,"url":"https://api.github.com/repos/arduino/Arduino","forks_url":"https://api.github.com/repos/arduino/Arduino/forks","keys_url":"https://api.github.com/repos/arduino/Arduino/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arduino/Arduino/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arduino/Arduino/teams","hooks_url":"https://api.github.com/repos/arduino/Arduino/hooks","issue_events_url":"https://api.github.com/repos/arduino/Arduino/issues/events{/number}","events_url":"https://api.github.com/repos/arduino/Arduino/events","assignees_url":"https://api.github.com/repos/arduino/Arduino/assignees{/user}","branches_url":"https://api.github.com/repos/arduino/Arduino/branches{/branch}","tags_url":"https://api.github.com/repos/arduino/Arduino/tags","blobs_url":"https://api.github.com/repos/arduino/Arduino/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arduino/Arduino/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arduino/Arduino/git/refs{/sha}","trees_url":"https://api.github.com/repos/arduino/Arduino/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arduino/Arduino/statuses/{sha}","languages_url":"https://api.github.com/repos/arduino/Arduino/languages","stargazers_url":"https://api.github.com/repos/arduino/Arduino/stargazers","contributors_url":"https://api.github.com/repos/arduino/Arduino/contributors","subscribers_url":"https://api.github.com/repos/arduino/Arduino/subscribers","subscription_url":"https://api.github.com/repos/arduino/Arduino/subscription","commits_url":"https://api.github.com/repos/arduino/Arduino/commits{/sha}","git_commits_url":"https://api.github.com/repos/arduino/Arduino/git/commits{/sha}","comments_url":"https://api.github.com/repos/arduino/Arduino/comments{/number}","issue_comment_url":"https://api.github.com/repos/arduino/Arduino/issues/comments{/number}","contents_url":"https://api.github.com/repos/arduino/Arduino/contents/{+path}","compare_url":"https://api.github.com/repos/arduino/Arduino/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arduino/Arduino/merges","archive_url":"https://api.github.com/repos/arduino/Arduino/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arduino/Arduino/downloads","issues_url":"https://api.github.com/repos/arduino/Arduino/issues{/number}","pulls_url":"https://api.github.com/repos/arduino/Arduino/pulls{/number}","milestones_url":"https://api.github.com/repos/arduino/Arduino/milestones{/number}","notifications_url":"https://api.github.com/repos/arduino/Arduino/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arduino/Arduino/labels{/name}","releases_url":"https://api.github.com/repos/arduino/Arduino/releases{/id}","created_at":"2010-09-17T19:10:36Z","updated_at":"2015-12-21T11:01:17Z","pushed_at":"2015-12-21T17:23:12Z","git_url":"git://github.com/arduino/Arduino.git","ssh_url":"git@github.com:arduino/Arduino.git","clone_url":"https://github.com/arduino/Arduino.git","svn_url":"https://github.com/arduino/Arduino","homepage":"http://www.arduino.cc/","size":2702874,"stargazers_count":4917,"watchers_count":4917,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3996,"mirror_url":null,"open_issues_count":682,"forks":3996,"open_issues":682,"watchers":4917,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/arduino/Arduino/pulls/4326"},"html":{"href":"https://github.com/arduino/Arduino/pull/4326"},"issue":{"href":"https://api.github.com/repos/arduino/Arduino/issues/4326"},"comments":{"href":"https://api.github.com/repos/arduino/Arduino/issues/4326/comments"},"review_comments":{"href":"https://api.github.com/repos/arduino/Arduino/pulls/4326/comments"},"review_comment":{"href":"https://api.github.com/repos/arduino/Arduino/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/arduino/Arduino/pulls/4326/commits"},"statuses":{"href":"https://api.github.com/repos/arduino/Arduino/statuses/7c089c96d3f607aafcef08af09cdbe56a4b03ab7"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":19,"deletions":1,"changed_files":1}}