{"action":"created","comment":{"url":"https://api.github.com/repos/bartdejonge1996/goto-fail/pulls/comments/63145007","id":63145007,"diff_hunk":"@@ -146,7 +148,7 @@ private void handleCancel(MouseEvent event) {\n      *\n      * @param block ShotBlock to set as active\n      */\n-    public void setActiveShotBlock(ShotBlock block) {\n+    public void setActiveShotBlock(Optional<ShotBlock> block) {","path":"src/main/java/control/ControllerManager.java","position":23,"original_position":23,"commit_id":"ad02661e0e7533738cccd02f26dda1bd47531bdf","original_commit_id":"05293c8c62fa70186f400aa5decfefd78d6a973c","user":{"login":"bartdejonge1996","id":9842130,"avatar_url":"https://avatars.githubusercontent.com/u/9842130?v=3","gravatar_id":"","url":"https://api.github.com/users/bartdejonge1996","html_url":"https://github.com/bartdejonge1996","followers_url":"https://api.github.com/users/bartdejonge1996/followers","following_url":"https://api.github.com/users/bartdejonge1996/following{/other_user}","gists_url":"https://api.github.com/users/bartdejonge1996/gists{/gist_id}","starred_url":"https://api.github.com/users/bartdejonge1996/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartdejonge1996/subscriptions","organizations_url":"https://api.github.com/users/bartdejonge1996/orgs","repos_url":"https://api.github.com/users/bartdejonge1996/repos","events_url":"https://api.github.com/users/bartdejonge1996/events{/privacy}","received_events_url":"https://api.github.com/users/bartdejonge1996/received_events","type":"User","site_admin":false},"body":"I agree with martijn's point, the setter should be a normal ShotBlock and you should do the null check in the setter","created_at":"2016-05-13T07:53:07Z","updated_at":"2016-05-13T07:53:07Z","html_url":"https://github.com/bartdejonge1996/goto-fail/pull/97#discussion_r63145007","pull_request_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/pulls/97","_links":{"self":{"href":"https://api.github.com/repos/bartdejonge1996/goto-fail/pulls/comments/63145007"},"html":{"href":"https://github.com/bartdejonge1996/goto-fail/pull/97#discussion_r63145007"},"pull_request":{"href":"https://api.github.com/repos/bartdejonge1996/goto-fail/pulls/97"}}},"pull_request":{"url":"https://api.github.com/repos/bartdejonge1996/goto-fail/pulls/97","id":69872363,"html_url":"https://github.com/bartdejonge1996/goto-fail/pull/97","diff_url":"https://github.com/bartdejonge1996/goto-fail/pull/97.diff","patch_url":"https://github.com/bartdejonge1996/goto-fail/pull/97.patch","issue_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/issues/97","number":97,"state":"open","locked":false,"title":"Make ActiveShotBlock Optional","user":{"login":"geenen124","id":2461715,"avatar_url":"https://avatars.githubusercontent.com/u/2461715?v=3","gravatar_id":"","url":"https://api.github.com/users/geenen124","html_url":"https://github.com/geenen124","followers_url":"https://api.github.com/users/geenen124/followers","following_url":"https://api.github.com/users/geenen124/following{/other_user}","gists_url":"https://api.github.com/users/geenen124/gists{/gist_id}","starred_url":"https://api.github.com/users/geenen124/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geenen124/subscriptions","organizations_url":"https://api.github.com/users/geenen124/orgs","repos_url":"https://api.github.com/users/geenen124/repos","events_url":"https://api.github.com/users/geenen124/events{/privacy}","received_events_url":"https://api.github.com/users/geenen124/received_events","type":"User","site_admin":false},"body":"Resolves #57 ","created_at":"2016-05-12T17:03:41Z","updated_at":"2016-05-13T07:53:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2fcb634e2cf481d5c78ab66d94688ee387c5a1d6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/pulls/97/commits","review_comments_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/pulls/97/comments","review_comment_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/issues/97/comments","statuses_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/statuses/ad02661e0e7533738cccd02f26dda1bd47531bdf","head":{"label":"bartdejonge1996:optional-activeblock","ref":"optional-activeblock","sha":"ad02661e0e7533738cccd02f26dda1bd47531bdf","user":{"login":"bartdejonge1996","id":9842130,"avatar_url":"https://avatars.githubusercontent.com/u/9842130?v=3","gravatar_id":"","url":"https://api.github.com/users/bartdejonge1996","html_url":"https://github.com/bartdejonge1996","followers_url":"https://api.github.com/users/bartdejonge1996/followers","following_url":"https://api.github.com/users/bartdejonge1996/following{/other_user}","gists_url":"https://api.github.com/users/bartdejonge1996/gists{/gist_id}","starred_url":"https://api.github.com/users/bartdejonge1996/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartdejonge1996/subscriptions","organizations_url":"https://api.github.com/users/bartdejonge1996/orgs","repos_url":"https://api.github.com/users/bartdejonge1996/repos","events_url":"https://api.github.com/users/bartdejonge1996/events{/privacy}","received_events_url":"https://api.github.com/users/bartdejonge1996/received_events","type":"User","site_admin":false},"repo":{"id":56350289,"name":"goto-fail","full_name":"bartdejonge1996/goto-fail","owner":{"login":"bartdejonge1996","id":9842130,"avatar_url":"https://avatars.githubusercontent.com/u/9842130?v=3","gravatar_id":"","url":"https://api.github.com/users/bartdejonge1996","html_url":"https://github.com/bartdejonge1996","followers_url":"https://api.github.com/users/bartdejonge1996/followers","following_url":"https://api.github.com/users/bartdejonge1996/following{/other_user}","gists_url":"https://api.github.com/users/bartdejonge1996/gists{/gist_id}","starred_url":"https://api.github.com/users/bartdejonge1996/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartdejonge1996/subscriptions","organizations_url":"https://api.github.com/users/bartdejonge1996/orgs","repos_url":"https://api.github.com/users/bartdejonge1996/repos","events_url":"https://api.github.com/users/bartdejonge1996/events{/privacy}","received_events_url":"https://api.github.com/users/bartdejonge1996/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bartdejonge1996/goto-fail","description":"Repository for ContextProject","fork":false,"url":"https://api.github.com/repos/bartdejonge1996/goto-fail","forks_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/forks","keys_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/teams","hooks_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/hooks","issue_events_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/issues/events{/number}","events_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/events","assignees_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/assignees{/user}","branches_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/branches{/branch}","tags_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/tags","blobs_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/git/refs{/sha}","trees_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/statuses/{sha}","languages_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/languages","stargazers_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/stargazers","contributors_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/contributors","subscribers_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/subscribers","subscription_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/subscription","commits_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/commits{/sha}","git_commits_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/git/commits{/sha}","comments_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/comments{/number}","issue_comment_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/issues/comments{/number}","contents_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/contents/{+path}","compare_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/merges","archive_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/downloads","issues_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/issues{/number}","pulls_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/pulls{/number}","milestones_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/milestones{/number}","notifications_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/labels{/name}","releases_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/releases{/id}","deployments_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/deployments","created_at":"2016-04-15T21:17:16Z","updated_at":"2016-04-26T22:28:40Z","pushed_at":"2016-05-13T07:50:32Z","git_url":"git://github.com/bartdejonge1996/goto-fail.git","ssh_url":"git@github.com:bartdejonge1996/goto-fail.git","clone_url":"https://github.com/bartdejonge1996/goto-fail.git","svn_url":"https://github.com/bartdejonge1996/goto-fail","homepage":"http://www.gotofail.net/","size":2823,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"develop"}},"base":{"label":"bartdejonge1996:develop","ref":"develop","sha":"ffda9bcd451e7eaf1b5abdd21ef31a62ce5738a1","user":{"login":"bartdejonge1996","id":9842130,"avatar_url":"https://avatars.githubusercontent.com/u/9842130?v=3","gravatar_id":"","url":"https://api.github.com/users/bartdejonge1996","html_url":"https://github.com/bartdejonge1996","followers_url":"https://api.github.com/users/bartdejonge1996/followers","following_url":"https://api.github.com/users/bartdejonge1996/following{/other_user}","gists_url":"https://api.github.com/users/bartdejonge1996/gists{/gist_id}","starred_url":"https://api.github.com/users/bartdejonge1996/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartdejonge1996/subscriptions","organizations_url":"https://api.github.com/users/bartdejonge1996/orgs","repos_url":"https://api.github.com/users/bartdejonge1996/repos","events_url":"https://api.github.com/users/bartdejonge1996/events{/privacy}","received_events_url":"https://api.github.com/users/bartdejonge1996/received_events","type":"User","site_admin":false},"repo":{"id":56350289,"name":"goto-fail","full_name":"bartdejonge1996/goto-fail","owner":{"login":"bartdejonge1996","id":9842130,"avatar_url":"https://avatars.githubusercontent.com/u/9842130?v=3","gravatar_id":"","url":"https://api.github.com/users/bartdejonge1996","html_url":"https://github.com/bartdejonge1996","followers_url":"https://api.github.com/users/bartdejonge1996/followers","following_url":"https://api.github.com/users/bartdejonge1996/following{/other_user}","gists_url":"https://api.github.com/users/bartdejonge1996/gists{/gist_id}","starred_url":"https://api.github.com/users/bartdejonge1996/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartdejonge1996/subscriptions","organizations_url":"https://api.github.com/users/bartdejonge1996/orgs","repos_url":"https://api.github.com/users/bartdejonge1996/repos","events_url":"https://api.github.com/users/bartdejonge1996/events{/privacy}","received_events_url":"https://api.github.com/users/bartdejonge1996/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bartdejonge1996/goto-fail","description":"Repository for ContextProject","fork":false,"url":"https://api.github.com/repos/bartdejonge1996/goto-fail","forks_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/forks","keys_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/teams","hooks_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/hooks","issue_events_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/issues/events{/number}","events_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/events","assignees_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/assignees{/user}","branches_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/branches{/branch}","tags_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/tags","blobs_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/git/refs{/sha}","trees_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/statuses/{sha}","languages_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/languages","stargazers_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/stargazers","contributors_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/contributors","subscribers_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/subscribers","subscription_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/subscription","commits_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/commits{/sha}","git_commits_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/git/commits{/sha}","comments_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/comments{/number}","issue_comment_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/issues/comments{/number}","contents_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/contents/{+path}","compare_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/merges","archive_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/downloads","issues_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/issues{/number}","pulls_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/pulls{/number}","milestones_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/milestones{/number}","notifications_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/labels{/name}","releases_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/releases{/id}","deployments_url":"https://api.github.com/repos/bartdejonge1996/goto-fail/deployments","created_at":"2016-04-15T21:17:16Z","updated_at":"2016-04-26T22:28:40Z","pushed_at":"2016-05-13T07:50:32Z","git_url":"git://github.com/bartdejonge1996/goto-fail.git","ssh_url":"git@github.com:bartdejonge1996/goto-fail.git","clone_url":"https://github.com/bartdejonge1996/goto-fail.git","svn_url":"https://github.com/bartdejonge1996/goto-fail","homepage":"http://www.gotofail.net/","size":2823,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/bartdejonge1996/goto-fail/pulls/97"},"html":{"href":"https://github.com/bartdejonge1996/goto-fail/pull/97"},"issue":{"href":"https://api.github.com/repos/bartdejonge1996/goto-fail/issues/97"},"comments":{"href":"https://api.github.com/repos/bartdejonge1996/goto-fail/issues/97/comments"},"review_comments":{"href":"https://api.github.com/repos/bartdejonge1996/goto-fail/pulls/97/comments"},"review_comment":{"href":"https://api.github.com/repos/bartdejonge1996/goto-fail/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bartdejonge1996/goto-fail/pulls/97/commits"},"statuses":{"href":"https://api.github.com/repos/bartdejonge1996/goto-fail/statuses/ad02661e0e7533738cccd02f26dda1bd47531bdf"}}}}