{"action":"created","issue":{"url":"https://api.github.com/repos/prestodb/tempto/issues/84","labels_url":"https://api.github.com/repos/prestodb/tempto/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/prestodb/tempto/issues/84/comments","events_url":"https://api.github.com/repos/prestodb/tempto/issues/84/events","html_url":"https://github.com/prestodb/tempto/issues/84","id":122589765,"number":84,"title":"Empty JdbcTableDataSource causes NullPointerException in JdbcTableManager","user":{"login":"maciejgrzybek","id":366501,"avatar_url":"https://avatars.githubusercontent.com/u/366501?v=3","gravatar_id":"","url":"https://api.github.com/users/maciejgrzybek","html_url":"https://github.com/maciejgrzybek","followers_url":"https://api.github.com/users/maciejgrzybek/followers","following_url":"https://api.github.com/users/maciejgrzybek/following{/other_user}","gists_url":"https://api.github.com/users/maciejgrzybek/gists{/gist_id}","starred_url":"https://api.github.com/users/maciejgrzybek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maciejgrzybek/subscriptions","organizations_url":"https://api.github.com/users/maciejgrzybek/orgs","repos_url":"https://api.github.com/users/maciejgrzybek/repos","events_url":"https://api.github.com/users/maciejgrzybek/events{/privacy}","received_events_url":"https://api.github.com/users/maciejgrzybek/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-16T20:02:08Z","updated_at":"2015-12-17T20:37:35Z","closed_at":"2015-12-17T20:37:35Z","body":"When JDBCTableDefinition has data source which returns no rows `NullPointerException` is thrown when executing test case.\r\n\r\nSteps to reproduce:\r\n1. create `JdbcTableDefinition` with `JdbcTableDataSource` having iterator on empty collection.\r\n2. run a test\r\n\r\nActual behavior:\r\n`NullPointerException` is thrown.\r\n\r\nExpected behavior:\r\nTest is executed against empty table as defined in `JdbcTableDefinition`."},"comment":{"url":"https://api.github.com/repos/prestodb/tempto/issues/comments/165575746","html_url":"https://github.com/prestodb/tempto/issues/84#issuecomment-165575746","issue_url":"https://api.github.com/repos/prestodb/tempto/issues/84","id":165575746,"user":{"login":"maciejgrzybek","id":366501,"avatar_url":"https://avatars.githubusercontent.com/u/366501?v=3","gravatar_id":"","url":"https://api.github.com/users/maciejgrzybek","html_url":"https://github.com/maciejgrzybek","followers_url":"https://api.github.com/users/maciejgrzybek/followers","following_url":"https://api.github.com/users/maciejgrzybek/following{/other_user}","gists_url":"https://api.github.com/users/maciejgrzybek/gists{/gist_id}","starred_url":"https://api.github.com/users/maciejgrzybek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maciejgrzybek/subscriptions","organizations_url":"https://api.github.com/users/maciejgrzybek/orgs","repos_url":"https://api.github.com/users/maciejgrzybek/repos","events_url":"https://api.github.com/users/maciejgrzybek/events{/privacy}","received_events_url":"https://api.github.com/users/maciejgrzybek/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T20:37:35Z","updated_at":"2015-12-17T20:37:35Z","body":"Merged to master."}}