{"action":"closed","number":22,"pull_request":{"url":"https://api.github.com/repos/DataTables/Buttons/pulls/22","id":44778307,"html_url":"https://github.com/DataTables/Buttons/pull/22","diff_url":"https://github.com/DataTables/Buttons/pull/22.diff","patch_url":"https://github.com/DataTables/Buttons/pull/22.patch","issue_url":"https://api.github.com/repos/DataTables/Buttons/issues/22","number":22,"state":"closed","locked":false,"title":"prevent RangeError when no columns present","user":{"login":"joe-meyer","id":1292766,"avatar_url":"https://avatars.githubusercontent.com/u/1292766?v=3","gravatar_id":"","url":"https://api.github.com/users/joe-meyer","html_url":"https://github.com/joe-meyer","followers_url":"https://api.github.com/users/joe-meyer/followers","following_url":"https://api.github.com/users/joe-meyer/following{/other_user}","gists_url":"https://api.github.com/users/joe-meyer/gists{/gist_id}","starred_url":"https://api.github.com/users/joe-meyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joe-meyer/subscriptions","organizations_url":"https://api.github.com/users/joe-meyer/orgs","repos_url":"https://api.github.com/users/joe-meyer/repos","events_url":"https://api.github.com/users/joe-meyer/events{/privacy}","received_events_url":"https://api.github.com/users/joe-meyer/received_events","type":"User","site_admin":false},"body":"Currently if you have a data table which has no columns (edge use case I know) and you try to do something like export to csv, nothing appears to happen because of a division by 0. This allows the file to create at least the user isn't wondering why nothing is happening.","created_at":"2015-09-11T12:49:20Z","updated_at":"2015-09-11T13:23:38Z","closed_at":"2015-09-11T13:23:38Z","merged_at":"2015-09-11T13:23:38Z","merge_commit_sha":"3d1da4a8688b685d2ecadd6d653877df383d55c8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DataTables/Buttons/pulls/22/commits","review_comments_url":"https://api.github.com/repos/DataTables/Buttons/pulls/22/comments","review_comment_url":"https://api.github.com/repos/DataTables/Buttons/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DataTables/Buttons/issues/22/comments","statuses_url":"https://api.github.com/repos/DataTables/Buttons/statuses/1748eaaee539b625be349db9e43fc63e0c63a26c","head":{"label":"ExchangeCore:joe-meyer-patch-1","ref":"joe-meyer-patch-1","sha":"1748eaaee539b625be349db9e43fc63e0c63a26c","user":{"login":"ExchangeCore","id":7229913,"avatar_url":"https://avatars.githubusercontent.com/u/7229913?v=3","gravatar_id":"","url":"https://api.github.com/users/ExchangeCore","html_url":"https://github.com/ExchangeCore","followers_url":"https://api.github.com/users/ExchangeCore/followers","following_url":"https://api.github.com/users/ExchangeCore/following{/other_user}","gists_url":"https://api.github.com/users/ExchangeCore/gists{/gist_id}","starred_url":"https://api.github.com/users/ExchangeCore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ExchangeCore/subscriptions","organizations_url":"https://api.github.com/users/ExchangeCore/orgs","repos_url":"https://api.github.com/users/ExchangeCore/repos","events_url":"https://api.github.com/users/ExchangeCore/events{/privacy}","received_events_url":"https://api.github.com/users/ExchangeCore/received_events","type":"Organization","site_admin":false},"repo":{"id":42307747,"name":"Buttons","full_name":"ExchangeCore/Buttons","owner":{"login":"ExchangeCore","id":7229913,"avatar_url":"https://avatars.githubusercontent.com/u/7229913?v=3","gravatar_id":"","url":"https://api.github.com/users/ExchangeCore","html_url":"https://github.com/ExchangeCore","followers_url":"https://api.github.com/users/ExchangeCore/followers","following_url":"https://api.github.com/users/ExchangeCore/following{/other_user}","gists_url":"https://api.github.com/users/ExchangeCore/gists{/gist_id}","starred_url":"https://api.github.com/users/ExchangeCore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ExchangeCore/subscriptions","organizations_url":"https://api.github.com/users/ExchangeCore/orgs","repos_url":"https://api.github.com/users/ExchangeCore/repos","events_url":"https://api.github.com/users/ExchangeCore/events{/privacy}","received_events_url":"https://api.github.com/users/ExchangeCore/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ExchangeCore/Buttons","description":"Buttons is an extension for DataTables that adds control buttons to the table.","fork":true,"url":"https://api.github.com/repos/ExchangeCore/Buttons","forks_url":"https://api.github.com/repos/ExchangeCore/Buttons/forks","keys_url":"https://api.github.com/repos/ExchangeCore/Buttons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ExchangeCore/Buttons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ExchangeCore/Buttons/teams","hooks_url":"https://api.github.com/repos/ExchangeCore/Buttons/hooks","issue_events_url":"https://api.github.com/repos/ExchangeCore/Buttons/issues/events{/number}","events_url":"https://api.github.com/repos/ExchangeCore/Buttons/events","assignees_url":"https://api.github.com/repos/ExchangeCore/Buttons/assignees{/user}","branches_url":"https://api.github.com/repos/ExchangeCore/Buttons/branches{/branch}","tags_url":"https://api.github.com/repos/ExchangeCore/Buttons/tags","blobs_url":"https://api.github.com/repos/ExchangeCore/Buttons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ExchangeCore/Buttons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ExchangeCore/Buttons/git/refs{/sha}","trees_url":"https://api.github.com/repos/ExchangeCore/Buttons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ExchangeCore/Buttons/statuses/{sha}","languages_url":"https://api.github.com/repos/ExchangeCore/Buttons/languages","stargazers_url":"https://api.github.com/repos/ExchangeCore/Buttons/stargazers","contributors_url":"https://api.github.com/repos/ExchangeCore/Buttons/contributors","subscribers_url":"https://api.github.com/repos/ExchangeCore/Buttons/subscribers","subscription_url":"https://api.github.com/repos/ExchangeCore/Buttons/subscription","commits_url":"https://api.github.com/repos/ExchangeCore/Buttons/commits{/sha}","git_commits_url":"https://api.github.com/repos/ExchangeCore/Buttons/git/commits{/sha}","comments_url":"https://api.github.com/repos/ExchangeCore/Buttons/comments{/number}","issue_comment_url":"https://api.github.com/repos/ExchangeCore/Buttons/issues/comments{/number}","contents_url":"https://api.github.com/repos/ExchangeCore/Buttons/contents/{+path}","compare_url":"https://api.github.com/repos/ExchangeCore/Buttons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ExchangeCore/Buttons/merges","archive_url":"https://api.github.com/repos/ExchangeCore/Buttons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ExchangeCore/Buttons/downloads","issues_url":"https://api.github.com/repos/ExchangeCore/Buttons/issues{/number}","pulls_url":"https://api.github.com/repos/ExchangeCore/Buttons/pulls{/number}","milestones_url":"https://api.github.com/repos/ExchangeCore/Buttons/milestones{/number}","notifications_url":"https://api.github.com/repos/ExchangeCore/Buttons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ExchangeCore/Buttons/labels{/name}","releases_url":"https://api.github.com/repos/ExchangeCore/Buttons/releases{/id}","created_at":"2015-09-11T12:41:37Z","updated_at":"2015-09-11T12:41:37Z","pushed_at":"2015-09-11T12:48:12Z","git_url":"git://github.com/ExchangeCore/Buttons.git","ssh_url":"git@github.com:ExchangeCore/Buttons.git","clone_url":"https://github.com/ExchangeCore/Buttons.git","svn_url":"https://github.com/ExchangeCore/Buttons","homepage":null,"size":884,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"DataTables:master","ref":"master","sha":"fb7c127e199920cace4c4b71a52e0144a30ab16c","user":{"login":"DataTables","id":278219,"avatar_url":"https://avatars.githubusercontent.com/u/278219?v=3","gravatar_id":"","url":"https://api.github.com/users/DataTables","html_url":"https://github.com/DataTables","followers_url":"https://api.github.com/users/DataTables/followers","following_url":"https://api.github.com/users/DataTables/following{/other_user}","gists_url":"https://api.github.com/users/DataTables/gists{/gist_id}","starred_url":"https://api.github.com/users/DataTables/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataTables/subscriptions","organizations_url":"https://api.github.com/users/DataTables/orgs","repos_url":"https://api.github.com/users/DataTables/repos","events_url":"https://api.github.com/users/DataTables/events{/privacy}","received_events_url":"https://api.github.com/users/DataTables/received_events","type":"User","site_admin":false},"repo":{"id":33553670,"name":"Buttons","full_name":"DataTables/Buttons","owner":{"login":"DataTables","id":278219,"avatar_url":"https://avatars.githubusercontent.com/u/278219?v=3","gravatar_id":"","url":"https://api.github.com/users/DataTables","html_url":"https://github.com/DataTables","followers_url":"https://api.github.com/users/DataTables/followers","following_url":"https://api.github.com/users/DataTables/following{/other_user}","gists_url":"https://api.github.com/users/DataTables/gists{/gist_id}","starred_url":"https://api.github.com/users/DataTables/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataTables/subscriptions","organizations_url":"https://api.github.com/users/DataTables/orgs","repos_url":"https://api.github.com/users/DataTables/repos","events_url":"https://api.github.com/users/DataTables/events{/privacy}","received_events_url":"https://api.github.com/users/DataTables/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DataTables/Buttons","description":"Buttons is an extension for DataTables that adds control buttons to the table.","fork":false,"url":"https://api.github.com/repos/DataTables/Buttons","forks_url":"https://api.github.com/repos/DataTables/Buttons/forks","keys_url":"https://api.github.com/repos/DataTables/Buttons/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DataTables/Buttons/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DataTables/Buttons/teams","hooks_url":"https://api.github.com/repos/DataTables/Buttons/hooks","issue_events_url":"https://api.github.com/repos/DataTables/Buttons/issues/events{/number}","events_url":"https://api.github.com/repos/DataTables/Buttons/events","assignees_url":"https://api.github.com/repos/DataTables/Buttons/assignees{/user}","branches_url":"https://api.github.com/repos/DataTables/Buttons/branches{/branch}","tags_url":"https://api.github.com/repos/DataTables/Buttons/tags","blobs_url":"https://api.github.com/repos/DataTables/Buttons/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DataTables/Buttons/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DataTables/Buttons/git/refs{/sha}","trees_url":"https://api.github.com/repos/DataTables/Buttons/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DataTables/Buttons/statuses/{sha}","languages_url":"https://api.github.com/repos/DataTables/Buttons/languages","stargazers_url":"https://api.github.com/repos/DataTables/Buttons/stargazers","contributors_url":"https://api.github.com/repos/DataTables/Buttons/contributors","subscribers_url":"https://api.github.com/repos/DataTables/Buttons/subscribers","subscription_url":"https://api.github.com/repos/DataTables/Buttons/subscription","commits_url":"https://api.github.com/repos/DataTables/Buttons/commits{/sha}","git_commits_url":"https://api.github.com/repos/DataTables/Buttons/git/commits{/sha}","comments_url":"https://api.github.com/repos/DataTables/Buttons/comments{/number}","issue_comment_url":"https://api.github.com/repos/DataTables/Buttons/issues/comments{/number}","contents_url":"https://api.github.com/repos/DataTables/Buttons/contents/{+path}","compare_url":"https://api.github.com/repos/DataTables/Buttons/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DataTables/Buttons/merges","archive_url":"https://api.github.com/repos/DataTables/Buttons/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DataTables/Buttons/downloads","issues_url":"https://api.github.com/repos/DataTables/Buttons/issues{/number}","pulls_url":"https://api.github.com/repos/DataTables/Buttons/pulls{/number}","milestones_url":"https://api.github.com/repos/DataTables/Buttons/milestones{/number}","notifications_url":"https://api.github.com/repos/DataTables/Buttons/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DataTables/Buttons/labels{/name}","releases_url":"https://api.github.com/repos/DataTables/Buttons/releases{/id}","created_at":"2015-04-07T16:06:40Z","updated_at":"2015-09-04T19:23:52Z","pushed_at":"2015-09-11T13:23:38Z","git_url":"git://github.com/DataTables/Buttons.git","ssh_url":"git@github.com:DataTables/Buttons.git","clone_url":"https://github.com/DataTables/Buttons.git","svn_url":"https://github.com/DataTables/Buttons","homepage":null,"size":884,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":8,"forks":9,"open_issues":8,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DataTables/Buttons/pulls/22"},"html":{"href":"https://github.com/DataTables/Buttons/pull/22"},"issue":{"href":"https://api.github.com/repos/DataTables/Buttons/issues/22"},"comments":{"href":"https://api.github.com/repos/DataTables/Buttons/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/DataTables/Buttons/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/DataTables/Buttons/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DataTables/Buttons/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/DataTables/Buttons/statuses/1748eaaee539b625be349db9e43fc63e0c63a26c"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"DataTables","id":278219,"avatar_url":"https://avatars.githubusercontent.com/u/278219?v=3","gravatar_id":"","url":"https://api.github.com/users/DataTables","html_url":"https://github.com/DataTables","followers_url":"https://api.github.com/users/DataTables/followers","following_url":"https://api.github.com/users/DataTables/following{/other_user}","gists_url":"https://api.github.com/users/DataTables/gists{/gist_id}","starred_url":"https://api.github.com/users/DataTables/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataTables/subscriptions","organizations_url":"https://api.github.com/users/DataTables/orgs","repos_url":"https://api.github.com/users/DataTables/repos","events_url":"https://api.github.com/users/DataTables/events{/privacy}","received_events_url":"https://api.github.com/users/DataTables/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}