alexreisner/geocoder — pull request #325 by pjungwir (2012-11-03 04:28:52+00:00)
Title: Fixed exception on nil result

Occasionally getting this while using Yahoo as the provider:

NoMethodError: undefined method `map' for nil:NilClass
from /home/paul/.rvm/gems/ruby-1.9.3-p286/gems/geocoder-1.1.4/lib/geocoder/lookups/base.rb:29:in `search'
from /home/paul/.rvm/gems/ruby-1.9.3-p286/gems/geocoder-1.1.4/lib/geocoder/query.rb:11:in `execute'
from /home/paul/.rvm/gems/ruby-1.9.3-p286/gems/geocoder-1.1.4/lib/geocoder.rb:20:in `search'
from /home/paul/.rvm/gems/ruby-1.9.3-p286/gems/geocoder-1.1.4/lib/geocoder/stores/base.rb:103:in `do_lookup'
from /home/paul/.rvm/gems/ruby-1.9.3-p286/gems/geocoder-1.1.4/lib/geocoder/stores/active_record.rb:208:in `geocode'