{"action":"closed","number":593,"pull_request":{"url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/pulls/593","id":61309806,"html_url":"https://github.com/the-blue-alliance/the-blue-alliance-android/pull/593","diff_url":"https://github.com/the-blue-alliance/the-blue-alliance-android/pull/593.diff","patch_url":"https://github.com/the-blue-alliance/the-blue-alliance-android/pull/593.patch","issue_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/issues/593","number":593,"state":"closed","locked":false,"title":"Fix live event next/last match bugs","user":{"login":"phil-lopreiato","id":2754863,"avatar_url":"https://avatars.githubusercontent.com/u/2754863?v=3","gravatar_id":"","url":"https://api.github.com/users/phil-lopreiato","html_url":"https://github.com/phil-lopreiato","followers_url":"https://api.github.com/users/phil-lopreiato/followers","following_url":"https://api.github.com/users/phil-lopreiato/following{/other_user}","gists_url":"https://api.github.com/users/phil-lopreiato/gists{/gist_id}","starred_url":"https://api.github.com/users/phil-lopreiato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phil-lopreiato/subscriptions","organizations_url":"https://api.github.com/users/phil-lopreiato/orgs","repos_url":"https://api.github.com/users/phil-lopreiato/repos","events_url":"https://api.github.com/users/phil-lopreiato/events{/privacy}","received_events_url":"https://api.github.com/users/phil-lopreiato/received_events","type":"User","site_admin":false},"body":"If the eventbus event doesn't give us anything, hide the container for\r\nthe views. This fixes the bug in the case where you firt load next/last\r\nmatch while there are still matches to go, but then resume the activity\r\nafter the last match has been played. This will cause the last match\r\ncard to be \"stale\", still showing the old last match. Now we'll hide it\r\nin that case to produce the proper output.\r\n\r\nAdditionally, check if ButterKnife is bound during the eventbus\r\ncallbacks, since we may be in a resume state where we haven't done so\r\nyet. This will fix crashes trying to access a null view in the onEvent\r\nmethod, which many execute before `updateData` does or before the\r\nframework initially runs `bindViews`.\r\n\r\nFixes #585\n\n<!-- Reviewable:start -->\n[<img src=\"https://reviewable.io/review_button.svg\" height=\"40\" alt=\"Review on Reviewable\"/>](https://reviewable.io/reviews/the-blue-alliance/the-blue-alliance-android/593)\n<!-- Reviewable:end -->\n","created_at":"2016-03-01T21:17:50Z","updated_at":"2016-03-02T21:51:40Z","closed_at":"2016-03-02T21:51:40Z","merged_at":"2016-03-02T21:51:40Z","merge_commit_sha":"10b52ba98e025e46e9b182bbd7380e981cc162c1","assignee":null,"milestone":{"url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/milestones/20","html_url":"https://github.com/the-blue-alliance/the-blue-alliance-android/milestones/2016%20Week%201","labels_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/milestones/20/labels","id":1607064,"number":20,"title":"2016 Week 1","description":"","creator":{"login":"phil-lopreiato","id":2754863,"avatar_url":"https://avatars.githubusercontent.com/u/2754863?v=3","gravatar_id":"","url":"https://api.github.com/users/phil-lopreiato","html_url":"https://github.com/phil-lopreiato","followers_url":"https://api.github.com/users/phil-lopreiato/followers","following_url":"https://api.github.com/users/phil-lopreiato/following{/other_user}","gists_url":"https://api.github.com/users/phil-lopreiato/gists{/gist_id}","starred_url":"https://api.github.com/users/phil-lopreiato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phil-lopreiato/subscriptions","organizations_url":"https://api.github.com/users/phil-lopreiato/orgs","repos_url":"https://api.github.com/users/phil-lopreiato/repos","events_url":"https://api.github.com/users/phil-lopreiato/events{/privacy}","received_events_url":"https://api.github.com/users/phil-lopreiato/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":4,"state":"open","created_at":"2016-02-26T01:23:29Z","updated_at":"2016-03-02T21:51:40Z","due_on":"2016-03-02T05:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/pulls/593/commits","review_comments_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/pulls/593/comments","review_comment_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/issues/593/comments","statuses_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/statuses/da6544a2a45477e70c2d12974ea12e8f21f5603a","head":{"label":"phil-lopreiato:fix-#585","ref":"fix-#585","sha":"da6544a2a45477e70c2d12974ea12e8f21f5603a","user":{"login":"phil-lopreiato","id":2754863,"avatar_url":"https://avatars.githubusercontent.com/u/2754863?v=3","gravatar_id":"","url":"https://api.github.com/users/phil-lopreiato","html_url":"https://github.com/phil-lopreiato","followers_url":"https://api.github.com/users/phil-lopreiato/followers","following_url":"https://api.github.com/users/phil-lopreiato/following{/other_user}","gists_url":"https://api.github.com/users/phil-lopreiato/gists{/gist_id}","starred_url":"https://api.github.com/users/phil-lopreiato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phil-lopreiato/subscriptions","organizations_url":"https://api.github.com/users/phil-lopreiato/orgs","repos_url":"https://api.github.com/users/phil-lopreiato/repos","events_url":"https://api.github.com/users/phil-lopreiato/events{/privacy}","received_events_url":"https://api.github.com/users/phil-lopreiato/received_events","type":"User","site_admin":false},"repo":{"id":19519969,"name":"the-blue-alliance-android","full_name":"phil-lopreiato/the-blue-alliance-android","owner":{"login":"phil-lopreiato","id":2754863,"avatar_url":"https://avatars.githubusercontent.com/u/2754863?v=3","gravatar_id":"","url":"https://api.github.com/users/phil-lopreiato","html_url":"https://github.com/phil-lopreiato","followers_url":"https://api.github.com/users/phil-lopreiato/followers","following_url":"https://api.github.com/users/phil-lopreiato/following{/other_user}","gists_url":"https://api.github.com/users/phil-lopreiato/gists{/gist_id}","starred_url":"https://api.github.com/users/phil-lopreiato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phil-lopreiato/subscriptions","organizations_url":"https://api.github.com/users/phil-lopreiato/orgs","repos_url":"https://api.github.com/users/phil-lopreiato/repos","events_url":"https://api.github.com/users/phil-lopreiato/events{/privacy}","received_events_url":"https://api.github.com/users/phil-lopreiato/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/phil-lopreiato/the-blue-alliance-android","description":"An Android app for accessing information about the FIRST Robotics Competition.","fork":true,"url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android","forks_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/forks","keys_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/teams","hooks_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/hooks","issue_events_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/issues/events{/number}","events_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/events","assignees_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/assignees{/user}","branches_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/branches{/branch}","tags_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/tags","blobs_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/statuses/{sha}","languages_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/languages","stargazers_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/stargazers","contributors_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/contributors","subscribers_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/subscribers","subscription_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/subscription","commits_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/contents/{+path}","compare_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/merges","archive_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/downloads","issues_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/issues{/number}","pulls_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/pulls{/number}","milestones_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/milestones{/number}","notifications_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/labels{/name}","releases_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/releases{/id}","deployments_url":"https://api.github.com/repos/phil-lopreiato/the-blue-alliance-android/deployments","created_at":"2014-05-07T03:31:18Z","updated_at":"2016-02-14T23:30:04Z","pushed_at":"2016-03-01T23:39:46Z","git_url":"git://github.com/phil-lopreiato/the-blue-alliance-android.git","ssh_url":"git@github.com:phil-lopreiato/the-blue-alliance-android.git","clone_url":"https://github.com/phil-lopreiato/the-blue-alliance-android.git","svn_url":"https://github.com/phil-lopreiato/the-blue-alliance-android","homepage":null,"size":71333,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"the-blue-alliance:master","ref":"master","sha":"878689c1308993448af4ad0aad23c57776d6a5e3","user":{"login":"the-blue-alliance","id":7354965,"avatar_url":"https://avatars.githubusercontent.com/u/7354965?v=3","gravatar_id":"","url":"https://api.github.com/users/the-blue-alliance","html_url":"https://github.com/the-blue-alliance","followers_url":"https://api.github.com/users/the-blue-alliance/followers","following_url":"https://api.github.com/users/the-blue-alliance/following{/other_user}","gists_url":"https://api.github.com/users/the-blue-alliance/gists{/gist_id}","starred_url":"https://api.github.com/users/the-blue-alliance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-blue-alliance/subscriptions","organizations_url":"https://api.github.com/users/the-blue-alliance/orgs","repos_url":"https://api.github.com/users/the-blue-alliance/repos","events_url":"https://api.github.com/users/the-blue-alliance/events{/privacy}","received_events_url":"https://api.github.com/users/the-blue-alliance/received_events","type":"Organization","site_admin":false},"repo":{"id":18974940,"name":"the-blue-alliance-android","full_name":"the-blue-alliance/the-blue-alliance-android","owner":{"login":"the-blue-alliance","id":7354965,"avatar_url":"https://avatars.githubusercontent.com/u/7354965?v=3","gravatar_id":"","url":"https://api.github.com/users/the-blue-alliance","html_url":"https://github.com/the-blue-alliance","followers_url":"https://api.github.com/users/the-blue-alliance/followers","following_url":"https://api.github.com/users/the-blue-alliance/following{/other_user}","gists_url":"https://api.github.com/users/the-blue-alliance/gists{/gist_id}","starred_url":"https://api.github.com/users/the-blue-alliance/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-blue-alliance/subscriptions","organizations_url":"https://api.github.com/users/the-blue-alliance/orgs","repos_url":"https://api.github.com/users/the-blue-alliance/repos","events_url":"https://api.github.com/users/the-blue-alliance/events{/privacy}","received_events_url":"https://api.github.com/users/the-blue-alliance/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/the-blue-alliance/the-blue-alliance-android","description":"An Android app for accessing information about the FIRST Robotics Competition.","fork":false,"url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android","forks_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/forks","keys_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/teams","hooks_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/hooks","issue_events_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/issues/events{/number}","events_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/events","assignees_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/assignees{/user}","branches_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/branches{/branch}","tags_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/tags","blobs_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/statuses/{sha}","languages_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/languages","stargazers_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/stargazers","contributors_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/contributors","subscribers_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/subscribers","subscription_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/subscription","commits_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/contents/{+path}","compare_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/merges","archive_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/downloads","issues_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/issues{/number}","pulls_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/pulls{/number}","milestones_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/milestones{/number}","notifications_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/labels{/name}","releases_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/releases{/id}","deployments_url":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/deployments","created_at":"2014-04-20T22:06:41Z","updated_at":"2016-02-07T21:59:32Z","pushed_at":"2016-03-02T21:51:41Z","git_url":"git://github.com/the-blue-alliance/the-blue-alliance-android.git","ssh_url":"git@github.com:the-blue-alliance/the-blue-alliance-android.git","clone_url":"https://github.com/the-blue-alliance/the-blue-alliance-android.git","svn_url":"https://github.com/the-blue-alliance/the-blue-alliance-android","homepage":null,"size":71450,"stargazers_count":35,"watchers_count":35,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":45,"forks":16,"open_issues":45,"watchers":35,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/pulls/593"},"html":{"href":"https://github.com/the-blue-alliance/the-blue-alliance-android/pull/593"},"issue":{"href":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/issues/593"},"comments":{"href":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/issues/593/comments"},"review_comments":{"href":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/pulls/593/comments"},"review_comment":{"href":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/pulls/593/commits"},"statuses":{"href":"https://api.github.com/repos/the-blue-alliance/the-blue-alliance-android/statuses/da6544a2a45477e70c2d12974ea12e8f21f5603a"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"nwalters512","id":1476544,"avatar_url":"https://avatars.githubusercontent.com/u/1476544?v=3","gravatar_id":"","url":"https://api.github.com/users/nwalters512","html_url":"https://github.com/nwalters512","followers_url":"https://api.github.com/users/nwalters512/followers","following_url":"https://api.github.com/users/nwalters512/following{/other_user}","gists_url":"https://api.github.com/users/nwalters512/gists{/gist_id}","starred_url":"https://api.github.com/users/nwalters512/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwalters512/subscriptions","organizations_url":"https://api.github.com/users/nwalters512/orgs","repos_url":"https://api.github.com/users/nwalters512/repos","events_url":"https://api.github.com/users/nwalters512/events{/privacy}","received_events_url":"https://api.github.com/users/nwalters512/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":36,"deletions":3,"changed_files":1}}