{"action":"closed","number":960,"pull_request":{"url":"https://api.github.com/repos/Sable/soot/pulls/960","id":195945773,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1OTQ1Nzcz","html_url":"https://github.com/Sable/soot/pull/960","diff_url":"https://github.com/Sable/soot/pull/960.diff","patch_url":"https://github.com/Sable/soot/pull/960.patch","issue_url":"https://api.github.com/repos/Sable/soot/issues/960","number":960,"state":"closed","locked":false,"title":"BugFix: Null pointer exception in UseChecker","user":{"login":"agorski3","id":3299238,"node_id":"MDQ6VXNlcjMyOTkyMzg=","avatar_url":"https://avatars1.githubusercontent.com/u/3299238?v=4","gravatar_id":"","url":"https://api.github.com/users/agorski3","html_url":"https://github.com/agorski3","followers_url":"https://api.github.com/users/agorski3/followers","following_url":"https://api.github.com/users/agorski3/following{/other_user}","gists_url":"https://api.github.com/users/agorski3/gists{/gist_id}","starred_url":"https://api.github.com/users/agorski3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agorski3/subscriptions","organizations_url":"https://api.github.com/users/agorski3/orgs","repos_url":"https://api.github.com/users/agorski3/repos","events_url":"https://api.github.com/users/agorski3/events{/privacy}","received_events_url":"https://api.github.com/users/agorski3/received_events","type":"User","site_admin":false},"body":"In cases like the following:\r\n\r\nunknown $u11, $u8#22\r\n$u11 := @parameter0: java.lang.Object;\r\n$u8#19 = $u11 instanceof java.lang.Object[];\r\nif $u8#19 == 0 goto label12;\r\n$u8#22 = $u11[0];\r\nif $u8#22 == null goto label06;\r\n\r\nUseChecker would identify $u11 as an Object type but would fail to identify\r\n$u8#22 as a Object[] type because its only use was in the if check against\r\nnull. This resulted in a NullPointerException as the variable that was\r\nsupposed to contain the base type of the array reference was never set.\r\n\r\nHowever, it is already known that $u11 is of type Object. Thus by setting the\r\nbase type of the array ref to the already resolved type of local $u11 at the\r\nbeginning, we resolve the NullPointerException and still allow for the type\r\nto be changed if more information is discovered through use analysis.","created_at":"2018-06-19T20:18:40Z","updated_at":"2018-06-20T11:55:17Z","closed_at":"2018-06-20T11:55:17Z","merged_at":"2018-06-20T11:55:16Z","merge_commit_sha":"dcde42c595ca37cc042478a0e07b5ae5eec51b88","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Sable/soot/pulls/960/commits","review_comments_url":"https://api.github.com/repos/Sable/soot/pulls/960/comments","review_comment_url":"https://api.github.com/repos/Sable/soot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Sable/soot/issues/960/comments","statuses_url":"https://api.github.com/repos/Sable/soot/statuses/bb1861555103e851d1944f55108408d754e0f081","head":{"label":"agorski3:pullr_null_pointer_exception_in_usechecker","ref":"pullr_null_pointer_exception_in_usechecker","sha":"bb1861555103e851d1944f55108408d754e0f081","user":{"login":"agorski3","id":3299238,"node_id":"MDQ6VXNlcjMyOTkyMzg=","avatar_url":"https://avatars1.githubusercontent.com/u/3299238?v=4","gravatar_id":"","url":"https://api.github.com/users/agorski3","html_url":"https://github.com/agorski3","followers_url":"https://api.github.com/users/agorski3/followers","following_url":"https://api.github.com/users/agorski3/following{/other_user}","gists_url":"https://api.github.com/users/agorski3/gists{/gist_id}","starred_url":"https://api.github.com/users/agorski3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agorski3/subscriptions","organizations_url":"https://api.github.com/users/agorski3/orgs","repos_url":"https://api.github.com/users/agorski3/repos","events_url":"https://api.github.com/users/agorski3/events{/privacy}","received_events_url":"https://api.github.com/users/agorski3/received_events","type":"User","site_admin":false},"repo":{"id":35362036,"node_id":"MDEwOlJlcG9zaXRvcnkzNTM2MjAzNg==","name":"soot","full_name":"agorski3/soot","owner":{"login":"agorski3","id":3299238,"node_id":"MDQ6VXNlcjMyOTkyMzg=","avatar_url":"https://avatars1.githubusercontent.com/u/3299238?v=4","gravatar_id":"","url":"https://api.github.com/users/agorski3","html_url":"https://github.com/agorski3","followers_url":"https://api.github.com/users/agorski3/followers","following_url":"https://api.github.com/users/agorski3/following{/other_user}","gists_url":"https://api.github.com/users/agorski3/gists{/gist_id}","starred_url":"https://api.github.com/users/agorski3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agorski3/subscriptions","organizations_url":"https://api.github.com/users/agorski3/orgs","repos_url":"https://api.github.com/users/agorski3/repos","events_url":"https://api.github.com/users/agorski3/events{/privacy}","received_events_url":"https://api.github.com/users/agorski3/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/agorski3/soot","description":"Soot - A Java optimization framework","fork":true,"url":"https://api.github.com/repos/agorski3/soot","forks_url":"https://api.github.com/repos/agorski3/soot/forks","keys_url":"https://api.github.com/repos/agorski3/soot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/agorski3/soot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/agorski3/soot/teams","hooks_url":"https://api.github.com/repos/agorski3/soot/hooks","issue_events_url":"https://api.github.com/repos/agorski3/soot/issues/events{/number}","events_url":"https://api.github.com/repos/agorski3/soot/events","assignees_url":"https://api.github.com/repos/agorski3/soot/assignees{/user}","branches_url":"https://api.github.com/repos/agorski3/soot/branches{/branch}","tags_url":"https://api.github.com/repos/agorski3/soot/tags","blobs_url":"https://api.github.com/repos/agorski3/soot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/agorski3/soot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/agorski3/soot/git/refs{/sha}","trees_url":"https://api.github.com/repos/agorski3/soot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/agorski3/soot/statuses/{sha}","languages_url":"https://api.github.com/repos/agorski3/soot/languages","stargazers_url":"https://api.github.com/repos/agorski3/soot/stargazers","contributors_url":"https://api.github.com/repos/agorski3/soot/contributors","subscribers_url":"https://api.github.com/repos/agorski3/soot/subscribers","subscription_url":"https://api.github.com/repos/agorski3/soot/subscription","commits_url":"https://api.github.com/repos/agorski3/soot/commits{/sha}","git_commits_url":"https://api.github.com/repos/agorski3/soot/git/commits{/sha}","comments_url":"https://api.github.com/repos/agorski3/soot/comments{/number}","issue_comment_url":"https://api.github.com/repos/agorski3/soot/issues/comments{/number}","contents_url":"https://api.github.com/repos/agorski3/soot/contents/{+path}","compare_url":"https://api.github.com/repos/agorski3/soot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/agorski3/soot/merges","archive_url":"https://api.github.com/repos/agorski3/soot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/agorski3/soot/downloads","issues_url":"https://api.github.com/repos/agorski3/soot/issues{/number}","pulls_url":"https://api.github.com/repos/agorski3/soot/pulls{/number}","milestones_url":"https://api.github.com/repos/agorski3/soot/milestones{/number}","notifications_url":"https://api.github.com/repos/agorski3/soot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/agorski3/soot/labels{/name}","releases_url":"https://api.github.com/repos/agorski3/soot/releases{/id}","deployments_url":"https://api.github.com/repos/agorski3/soot/deployments","created_at":"2015-05-10T07:49:05Z","updated_at":"2018-06-19T19:47:56Z","pushed_at":"2018-06-19T20:36:32Z","git_url":"git://github.com/agorski3/soot.git","ssh_url":"git@github.com:agorski3/soot.git","clone_url":"https://github.com/agorski3/soot.git","svn_url":"https://github.com/agorski3/soot","homepage":null,"size":218243,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"lgpl-2.1","name":"GNU Lesser General Public License v2.1","spdx_id":"LGPL-2.1","url":"https://api.github.com/licenses/lgpl-2.1","node_id":"MDc6TGljZW5zZTEx"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"Sable:develop","ref":"develop","sha":"aa5b7750ac0a1fa01c52dd32752a44da0abe187d","user":{"login":"Sable","id":1871717,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NzE3MTc=","avatar_url":"https://avatars3.githubusercontent.com/u/1871717?v=4","gravatar_id":"","url":"https://api.github.com/users/Sable","html_url":"https://github.com/Sable","followers_url":"https://api.github.com/users/Sable/followers","following_url":"https://api.github.com/users/Sable/following{/other_user}","gists_url":"https://api.github.com/users/Sable/gists{/gist_id}","starred_url":"https://api.github.com/users/Sable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sable/subscriptions","organizations_url":"https://api.github.com/users/Sable/orgs","repos_url":"https://api.github.com/users/Sable/repos","events_url":"https://api.github.com/users/Sable/events{/privacy}","received_events_url":"https://api.github.com/users/Sable/received_events","type":"Organization","site_admin":false},"repo":{"id":4726093,"node_id":"MDEwOlJlcG9zaXRvcnk0NzI2MDkz","name":"soot","full_name":"Sable/soot","owner":{"login":"Sable","id":1871717,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NzE3MTc=","avatar_url":"https://avatars3.githubusercontent.com/u/1871717?v=4","gravatar_id":"","url":"https://api.github.com/users/Sable","html_url":"https://github.com/Sable","followers_url":"https://api.github.com/users/Sable/followers","following_url":"https://api.github.com/users/Sable/following{/other_user}","gists_url":"https://api.github.com/users/Sable/gists{/gist_id}","starred_url":"https://api.github.com/users/Sable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sable/subscriptions","organizations_url":"https://api.github.com/users/Sable/orgs","repos_url":"https://api.github.com/users/Sable/repos","events_url":"https://api.github.com/users/Sable/events{/privacy}","received_events_url":"https://api.github.com/users/Sable/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Sable/soot","description":"Soot - A Java optimization framework","fork":false,"url":"https://api.github.com/repos/Sable/soot","forks_url":"https://api.github.com/repos/Sable/soot/forks","keys_url":"https://api.github.com/repos/Sable/soot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sable/soot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sable/soot/teams","hooks_url":"https://api.github.com/repos/Sable/soot/hooks","issue_events_url":"https://api.github.com/repos/Sable/soot/issues/events{/number}","events_url":"https://api.github.com/repos/Sable/soot/events","assignees_url":"https://api.github.com/repos/Sable/soot/assignees{/user}","branches_url":"https://api.github.com/repos/Sable/soot/branches{/branch}","tags_url":"https://api.github.com/repos/Sable/soot/tags","blobs_url":"https://api.github.com/repos/Sable/soot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sable/soot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sable/soot/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sable/soot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sable/soot/statuses/{sha}","languages_url":"https://api.github.com/repos/Sable/soot/languages","stargazers_url":"https://api.github.com/repos/Sable/soot/stargazers","contributors_url":"https://api.github.com/repos/Sable/soot/contributors","subscribers_url":"https://api.github.com/repos/Sable/soot/subscribers","subscription_url":"https://api.github.com/repos/Sable/soot/subscription","commits_url":"https://api.github.com/repos/Sable/soot/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sable/soot/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sable/soot/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sable/soot/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sable/soot/contents/{+path}","compare_url":"https://api.github.com/repos/Sable/soot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sable/soot/merges","archive_url":"https://api.github.com/repos/Sable/soot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sable/soot/downloads","issues_url":"https://api.github.com/repos/Sable/soot/issues{/number}","pulls_url":"https://api.github.com/repos/Sable/soot/pulls{/number}","milestones_url":"https://api.github.com/repos/Sable/soot/milestones{/number}","notifications_url":"https://api.github.com/repos/Sable/soot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sable/soot/labels{/name}","releases_url":"https://api.github.com/repos/Sable/soot/releases{/id}","deployments_url":"https://api.github.com/repos/Sable/soot/deployments","created_at":"2012-06-20T12:41:19Z","updated_at":"2018-06-20T11:51:47Z","pushed_at":"2018-06-20T11:55:16Z","git_url":"git://github.com/Sable/soot.git","ssh_url":"git@github.com:Sable/soot.git","clone_url":"https://github.com/Sable/soot.git","svn_url":"https://github.com/Sable/soot","homepage":null,"size":199778,"stargazers_count":932,"watchers_count":932,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":369,"mirror_url":null,"archived":false,"open_issues_count":261,"license":{"key":"lgpl-2.1","name":"GNU Lesser General Public License v2.1","spdx_id":"LGPL-2.1","url":"https://api.github.com/licenses/lgpl-2.1","node_id":"MDc6TGljZW5zZTEx"},"forks":369,"open_issues":261,"watchers":932,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Sable/soot/pulls/960"},"html":{"href":"https://github.com/Sable/soot/pull/960"},"issue":{"href":"https://api.github.com/repos/Sable/soot/issues/960"},"comments":{"href":"https://api.github.com/repos/Sable/soot/issues/960/comments"},"review_comments":{"href":"https://api.github.com/repos/Sable/soot/pulls/960/comments"},"review_comment":{"href":"https://api.github.com/repos/Sable/soot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Sable/soot/pulls/960/commits"},"statuses":{"href":"https://api.github.com/repos/Sable/soot/statuses/bb1861555103e851d1944f55108408d754e0f081"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"mbenz89","id":7669513,"node_id":"MDQ6VXNlcjc2Njk1MTM=","avatar_url":"https://avatars0.githubusercontent.com/u/7669513?v=4","gravatar_id":"","url":"https://api.github.com/users/mbenz89","html_url":"https://github.com/mbenz89","followers_url":"https://api.github.com/users/mbenz89/followers","following_url":"https://api.github.com/users/mbenz89/following{/other_user}","gists_url":"https://api.github.com/users/mbenz89/gists{/gist_id}","starred_url":"https://api.github.com/users/mbenz89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbenz89/subscriptions","organizations_url":"https://api.github.com/users/mbenz89/orgs","repos_url":"https://api.github.com/users/mbenz89/repos","events_url":"https://api.github.com/users/mbenz89/events{/privacy}","received_events_url":"https://api.github.com/users/mbenz89/received_events","type":"User","site_admin":false},"comments":4,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":3,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"mbenz89"}}