payload: {"action":"closed","number":633,"pull_request":{"url":"https://api.github.com/repos/rubenlagus/TelegramBots/pulls/633","id":295893864,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjk1ODkzODY0","html_url":"https://github.com/rubenlagus/TelegramBots/pull/633","diff_url":"https://github.com/rubenlagus/TelegramBots/pull/633.diff","patch_url":"https://github.com/rubenlagus/TelegramBots/pull/633.patch","issue_url":"https://api.github.com/repos/rubenlagus/TelegramBots/issues/633","number":633,"state":"closed","locked":false,"title":"AbilityBots: prevent nullPointerExceptions when using message flags","user":{"login":"bernikr","id":6146026,"node_id":"MDQ6VXNlcjYxNDYwMjY=","avatar_url":"https://avatars2.githubusercontent.com/u/6146026?v=4","gravatar_id":"","url":"https://api.github.com/users/bernikr","html_url":"https://github.com/bernikr","followers_url":"https://api.github.com/users/bernikr/followers","following_url":"https://api.github.com/users/bernikr/following{/other_user}","gists_url":"https://api.github.com/users/bernikr/gists{/gist_id}","starred_url":"https://api.github.com/users/bernikr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bernikr/subscriptions","organizations_url":"https://api.github.com/users/bernikr/orgs","repos_url":"https://api.github.com/users/bernikr/repos","events_url":"https://api.github.com/users/bernikr/events{/privacy}","received_events_url":"https://api.github.com/users/bernikr/received_events","type":"User","site_admin":false},"body":"When using only a message flag like `LOCATION` without `MESSAGE` first, a nullPointerException is thrown if a non-message update is received.\r\n\r\nI believe that instead of throwing the exception, the massage flags like `LOCATION` or `REPLY` should just return false. This prevents bot developers from having to specify the redundant `MESSAGE` flag.\r\n\r\nThis PR fixes this bug by checking `hasMessage()` before calling `getMethod()`.","created_at":"2019-07-09T19:44:30Z","updated_at":"2019-10-08T22:05:59Z","closed_at":"2019-10-08T22:05:59Z","merged_at":"2019-10-08T22:05:59Z","merge_commit_sha":"4c5a25302bf2fd539808961947714dca5b066db7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":908901871,"node_id":"MDU6TGFiZWw5MDg5MDE4NzE=","url":"https://api.github.com/repos/rubenlagus/TelegramBots/labels/Abilities","name":"Abilities","color":"5dd829","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/rubenlagus/TelegramBots/pulls/633/commits","review_comments_url":"https://api.github.com/repos/rubenlagus/TelegramBots/pulls/633/comments","review_comment_url":"https://api.github.com/repos/rubenlagus/TelegramBots/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rubenlagus/TelegramBots/issues/633/comments","statuses_url":"https://api.github.com/repos/rubenlagus/TelegramBots/statuses/837b4d236073715dd2fef85017ca718abdb4ec4d","head":{"label":"bernikr:dev","ref":"dev","sha":"837b4d236073715dd2fef85017ca718abdb4ec4d","user":{"login":"bernikr","id":6146026,"node_id":"MDQ6VXNlcjYxNDYwMjY=","avatar_url":"https://avatars2.githubusercontent.com/u/6146026?v=4","gravatar_id":"","url":"https://api.github.com/users/bernikr","html_url":"https://github.com/bernikr","followers_url":"https://api.github.com/users/bernikr/followers","following_url":"https://api.github.com/users/bernikr/following{/other_user}","gists_url":"https://api.github.com/users/bernikr/gists{/gist_id}","starred_url":"https://api.github.com/users/bernikr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bernikr/subscriptions","organizations_url":"https://api.github.com/users/bernikr/orgs","repos_url":"https://api.github.com/users/bernikr/repos","events_url":"https://api.github.com/users/bernikr/events{/privacy}","received_events_url":"https://api.github.com/users/bernikr/received_events","type":"User","site_admin":false},"repo":{"id":178424598,"node_id":"MDEwOlJlcG9zaXRvcnkxNzg0MjQ1OTg=","name":"TelegramBots","full_name":"bernikr/TelegramBots","private":false,"owner":{"login":"bernikr","id":6146026,"node_id":"MDQ6VXNlcjYxNDYwMjY=","avatar_url":"https://avatars2.githubusercontent.com/u/6146026?v=4","gravatar_id":"","url":"https://api.github.com/users/bernikr","html_url":"https://github.com/bernikr","followers_url":"https://api.github.com/users/bernikr/followers","following_url":"https://api.github.com/users/bernikr/following{/other_user}","gists_url":"https://api.github.com/users/bernikr/gists{/gist_id}","starred_url":"https://api.github.com/users/bernikr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bernikr/subscriptions","organizations_url":"https://api.github.com/users/bernikr/orgs","repos_url":"https://api.github.com/users/bernikr/repos","events_url":"https://api.github.com/users/bernikr/events{/privacy}","received_events_url":"https://api.github.com/users/bernikr/received_events","type":"User","site_admin":false},"html_url":"https://github.com/bernikr/TelegramBots","description":"Java library to create bots using Telegram Bots API","fork":true,"url":"https://api.github.com/repos/bernikr/TelegramBots","forks_url":"https://api.github.com/repos/bernikr/TelegramBots/forks","keys_url":"https://api.github.com/repos/bernikr/TelegramBots/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bernikr/TelegramBots/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bernikr/TelegramBots/teams","hooks_url":"https://api.github.com/repos/bernikr/TelegramBots/hooks","issue_events_url":"https://api.github.com/repos/bernikr/TelegramBots/issues/events{/number}","events_url":"https://api.github.com/repos/bernikr/TelegramBots/events","assignees_url":"https://api.github.com/repos/bernikr/TelegramBots/assignees{/user}","branches_url":"https://api.github.com/repos/bernikr/TelegramBots/branches{/branch}","tags_url":"https://api.github.com/repos/bernikr/TelegramBots/tags","blobs_url":"https://api.github.com/repos/bernikr/TelegramBots/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bernikr/TelegramBots/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bernikr/TelegramBots/git/refs{/sha}","trees_url":"https://api.github.com/repos/bernikr/TelegramBots/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bernikr/TelegramBots/statuses/{sha}","languages_url":"https://api.github.com/repos/bernikr/TelegramBots/languages","stargazers_url":"https://api.github.com/repos/bernikr/TelegramBots/stargazers","contributors_url":"https://api.github.com/repos/bernikr/TelegramBots/contributors","subscribers_url":"https://api.github.com/repos/bernikr/TelegramBots/subscribers","subscription_url":"https://api.github.com/repos/bernikr/TelegramBots/subscription","commits_url":"https://api.github.com/repos/bernikr/TelegramBots/commits{/sha}","git_commits_url":"https://api.github.com/repos/bernikr/TelegramBots/git/commits{/sha}","comments_url":"https://api.github.com/repos/bernikr/TelegramBots/comments{/number}","issue_comment_url":"https://api.github.com/repos/bernikr/TelegramBots/issues/comments{/number}","contents_url":"https://api.github.com/repos/bernikr/TelegramBots/contents/{+path}","compare_url":"https://api.github.com/repos/bernikr/TelegramBots/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bernikr/TelegramBots/merges","archive_url":"https://api.github.com/repos/bernikr/TelegramBots/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bernikr/TelegramBots/downloads","issues_url":"https://api.github.com/repos/bernikr/TelegramBots/issues{/number}","pulls_url":"https://api.github.com/repos/bernikr/TelegramBots/pulls{/number}","milestones_url":"https://api.github.com/repos/bernikr/TelegramBots/milestones{/number}","notifications_url":"https://api.github.com/repos/bernikr/TelegramBots/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bernikr/TelegramBots/labels{/name}","releases_url":"https://api.github.com/repos/bernikr/TelegramBots/releases{/id}","deployments_url":"https://api.github.com/repos/bernikr/TelegramBots/deployments","created_at":"2019-03-29T14:53:08Z","updated_at":"2019-03-29T14:53:11Z","pushed_at":"2019-09-17T07:51:15Z","git_url":"git://github.com/bernikr/TelegramBots.git","ssh_url":"git@github.com:bernikr/TelegramBots.git","clone_url":"https://github.com/bernikr/TelegramBots.git","svn_url":"https://github.com/bernikr/TelegramBots","homepage":"https://telegram.me/JavaBotsApi","size":1690,"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,"disabled":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rubenlagus:dev","ref":"dev","sha":"7c11293d0784ce61d9c373cdea0cefc79b6eedb4","user":{"login":"rubenlagus","id":2874352,"node_id":"MDQ6VXNlcjI4NzQzNTI=","avatar_url":"https://avatars3.githubusercontent.com/u/2874352?v=4","gravatar_id":"","url":"https://api.github.com/users/rubenlagus","html_url":"https://github.com/rubenlagus","followers_url":"https://api.github.com/users/rubenlagus/followers","following_url":"https://api.github.com/users/rubenlagus/following{/other_user}","gists_url":"https://api.github.com/users/rubenlagus/gists{/gist_id}","starred_url":"https://api.github.com/users/rubenlagus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubenlagus/subscriptions","organizations_url":"https://api.github.com/users/rubenlagus/orgs","repos_url":"https://api.github.com/users/rubenlagus/repos","events_url":"https://api.github.com/users/rubenlagus/events{/privacy}","received_events_url":"https://api.github.com/users/rubenlagus/received_events","type":"User","site_admin":false},"repo":{"id":49610798,"node_id":"MDEwOlJlcG9zaXRvcnk0OTYxMDc5OA==","name":"TelegramBots","full_name":"rubenlagus/TelegramBots","private":false,"owner":{"login":"rubenlagus","id":2874352,"node_id":"MDQ6VXNlcjI4NzQzNTI=","avatar_url":"https://avatars3.githubusercontent.com/u/2874352?v=4","gravatar_id":"","url":"https://api.github.com/users/rubenlagus","html_url":"https://github.com/rubenlagus","followers_url":"https://api.github.com/users/rubenlagus/followers","following_url":"https://api.github.com/users/rubenlagus/following{/other_user}","gists_url":"https://api.github.com/users/rubenlagus/gists{/gist_id}","starred_url":"https://api.github.com/users/rubenlagus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubenlagus/subscriptions","organizations_url":"https://api.github.com/users/rubenlagus/orgs","repos_url":"https://api.github.com/users/rubenlagus/repos","events_url":"https://api.github.com/users/rubenlagus/events{/privacy}","received_events_url":"https://api.github.com/users/rubenlagus/received_events","type":"User","site_admin":false},"html_url":"https://github.com/rubenlagus/TelegramBots","description":"Java library to create bots using Telegram Bots API","fork":false,"url":"https://api.github.com/repos/rubenlagus/TelegramBots","forks_url":"https://api.github.com/repos/rubenlagus/TelegramBots/forks","keys_url":"https://api.github.com/repos/rubenlagus/TelegramBots/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rubenlagus/TelegramBots/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rubenlagus/TelegramBots/teams","hooks_url":"https://api.github.com/repos/rubenlagus/TelegramBots/hooks","issue_events_url":"https://api.github.com/repos/rubenlagus/TelegramBots/issues/events{/number}","events_url":"https://api.github.com/repos/rubenlagus/TelegramBots/events","assignees_url":"https://api.github.com/repos/rubenlagus/TelegramBots/assignees{/user}","branches_url":"https://api.github.com/repos/rubenlagus/TelegramBots/branches{/branch}","tags_url":"https://api.github.com/repos/rubenlagus/TelegramBots/tags","blobs_url":"https://api.github.com/repos/rubenlagus/TelegramBots/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rubenlagus/TelegramBots/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rubenlagus/TelegramBots/git/refs{/sha}","trees_url":"https://api.github.com/repos/rubenlagus/TelegramBots/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rubenlagus/TelegramBots/statuses/{sha}","languages_url":"https://api.github.com/repos/rubenlagus/TelegramBots/languages","stargazers_url":"https://api.github.com/repos/rubenlagus/TelegramBots/stargazers","contributors_url":"https://api.github.com/repos/rubenlagus/TelegramBots/contributors","subscribers_url":"https://api.github.com/repos/rubenlagus/TelegramBots/subscribers","subscription_url":"https://api.github.com/repos/rubenlagus/TelegramBots/subscription","commits_url":"https://api.github.com/repos/rubenlagus/TelegramBots/commits{/sha}","git_commits_url":"https://api.github.com/repos/rubenlagus/TelegramBots/git/commits{/sha}","comments_url":"https://api.github.com/repos/rubenlagus/TelegramBots/comments{/number}","issue_comment_url":"https://api.github.com/repos/rubenlagus/TelegramBots/issues/comments{/number}","contents_url":"https://api.github.com/repos/rubenlagus/TelegramBots/contents/{+path}","compare_url":"https://api.github.com/repos/rubenlagus/TelegramBots/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rubenlagus/TelegramBots/merges","archive_url":"https://api.github.com/repos/rubenlagus/TelegramBots/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rubenlagus/TelegramBots/downloads","issues_url":"https://api.github.com/repos/rubenlagus/TelegramBots/issues{/number}","pulls_url":"https://api.github.com/repos/rubenlagus/TelegramBots/pulls{/number}","milestones_url":"https://api.github.com/repos/rubenlagus/TelegramBots/milestones{/number}","notifications_url":"https://api.github.com/repos/rubenlagus/TelegramBots/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rubenlagus/TelegramBots/labels{/name}","releases_url":"https://api.github.com/repos/rubenlagus/TelegramBots/releases{/id}","deployments_url":"https://api.github.com/repos/rubenlagus/TelegramBots/deployments","created_at":"2016-01-14T00:13:07Z","updated_at":"2019-10-08T08:54:06Z","pushed_at":"2019-10-08T22:05:58Z","git_url":"git://github.com/rubenlagus/TelegramBots.git","ssh_url":"git@github.com:rubenlagus/TelegramBots.git","clone_url":"https://github.com/rubenlagus/TelegramBots.git","svn_url":"https://github.com/rubenlagus/TelegramBots","homepage":"https://telegram.me/JavaBotsApi","size":1757,"stargazers_count":1535,"watchers_count":1535,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":504,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":77,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":504,"open_issues":77,"watchers":1535,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rubenlagus/TelegramBots/pulls/633"},"html":{"href":"https://github.com/rubenlagus/TelegramBots/pull/633"},"issue":{"href":"https://api.github.com/repos/rubenlagus/TelegramBots/issues/633"},"comments":{"href":"https://api.github.com/repos/rubenlagus/TelegramBots/issues/633/comments"},"review_comments":{"href":"https://api.github.com/repos/rubenlagus/TelegramBots/pulls/633/comments"},"review_comment":{"href":"https://api.github.com/repos/rubenlagus/TelegramBots/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rubenlagus/TelegramBots/pulls/633/commits"},"statuses":{"href":"https://api.github.com/repos/rubenlagus/TelegramBots/statuses/837b4d236073715dd2fef85017ca718abdb4ec4d"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"rubenlagus","id":2874352,"node_id":"MDQ6VXNlcjI4NzQzNTI=","avatar_url":"https://avatars3.githubusercontent.com/u/2874352?v=4","gravatar_id":"","url":"https://api.github.com/users/rubenlagus","html_url":"https://github.com/rubenlagus","followers_url":"https://api.github.com/users/rubenlagus/followers","following_url":"https://api.github.com/users/rubenlagus/following{/other_user}","gists_url":"https://api.github.com/users/rubenlagus/gists{/gist_id}","starred_url":"https://api.github.com/users/rubenlagus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubenlagus/subscriptions","organizations_url":"https://api.github.com/users/rubenlagus/orgs","repos_url":"https://api.github.com/users/rubenlagus/repos","events_url":"https://api.github.com/users/rubenlagus/events{/privacy}","received_events_url":"https://api.github.com/users/rubenlagus/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":6,"deletions":6,"changed_files":1}}
other: {"actor":{"display_login":"rubenlagus"}}