{"action":"created","issue":{"url":"https://api.github.com/repos/googleads/google-api-ads-ruby/issues/82","labels_url":"https://api.github.com/repos/googleads/google-api-ads-ruby/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/googleads/google-api-ads-ruby/issues/82/comments","events_url":"https://api.github.com/repos/googleads/google-api-ads-ruby/issues/82/events","html_url":"https://github.com/googleads/google-api-ads-ruby/issues/82","id":129302285,"number":82,"title":".empty? called on nil in get_stream_helper_with_awql","user":{"login":"benhoxie","id":566376,"avatar_url":"https://avatars.githubusercontent.com/u/566376?v=3","gravatar_id":"","url":"https://api.github.com/users/benhoxie","html_url":"https://github.com/benhoxie","followers_url":"https://api.github.com/users/benhoxie/followers","following_url":"https://api.github.com/users/benhoxie/following{/other_user}","gists_url":"https://api.github.com/users/benhoxie/gists{/gist_id}","starred_url":"https://api.github.com/users/benhoxie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benhoxie/subscriptions","organizations_url":"https://api.github.com/users/benhoxie/orgs","repos_url":"https://api.github.com/users/benhoxie/repos","events_url":"https://api.github.com/users/benhoxie/events{/privacy}","received_events_url":"https://api.github.com/users/benhoxie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-27T23:32:00Z","updated_at":"2016-01-28T14:39:57Z","closed_at":null,"body":"I'm using the rails console to run through the example by hand get familiar with reporting outputs, using  this example: https://github.com/googleads/google-api-ads-ruby/blob/master/adwords_api/examples/v201509/reporting/stream_criteria_report_results.rb\r\n\r\nRunning the  get_stream_helper_with_awql command on line 58 throws \r\n>NoMethodError: undefined method `empty?' for nil:NilClass\r\n\tfrom /Users/usernamer/.rvm/gems/ruby-2.2.3/gems/google-adwords-api-0.18.0/lib/adwords_api/report_stream.rb:61:in `each_line'\r\n\tfrom (irb):49\r\n\tfrom /Users/username/.rvm/gems/ruby-2.2.3/gems/railties-4.2.0/lib/rails/commands/console.rb:110:in `start'\r\n\tfrom /Users/username/.rvm/gems/ruby-2.2.3/gems/railties-4.2.0/lib/rails/commands/console.rb:9:in `start'\r\n\r\nI guess line 61 should be more like\r\n`       @block.call(leftover_data) unless leftover_data.nil? || leftover_data.empty?() `\r\n\r\nfrom here: https://github.com/googleads/google-api-ads-ruby/blob/master/adwords_api/lib/adwords_api/report_stream.rb\r\n"},"comment":{"url":"https://api.github.com/repos/googleads/google-api-ads-ruby/issues/comments/176212027","html_url":"https://github.com/googleads/google-api-ads-ruby/issues/82#issuecomment-176212027","issue_url":"https://api.github.com/repos/googleads/google-api-ads-ruby/issues/82","id":176212027,"user":{"login":"mcloonan","id":5980822,"avatar_url":"https://avatars.githubusercontent.com/u/5980822?v=3","gravatar_id":"","url":"https://api.github.com/users/mcloonan","html_url":"https://github.com/mcloonan","followers_url":"https://api.github.com/users/mcloonan/followers","following_url":"https://api.github.com/users/mcloonan/following{/other_user}","gists_url":"https://api.github.com/users/mcloonan/gists{/gist_id}","starred_url":"https://api.github.com/users/mcloonan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcloonan/subscriptions","organizations_url":"https://api.github.com/users/mcloonan/orgs","repos_url":"https://api.github.com/users/mcloonan/repos","events_url":"https://api.github.com/users/mcloonan/events{/privacy}","received_events_url":"https://api.github.com/users/mcloonan/received_events","type":"User","site_admin":false},"created_at":"2016-01-28T14:39:57Z","updated_at":"2016-01-28T14:39:57Z","body":"Thanks for this report. I'll make sure a fix for this makes it into the next gem version."}}