Skip to content

Commit e307ef0

Browse files
authored
Update geocodio.rb
Guard for nil loc in parse_json
1 parent f6d93d8 commit e307ef0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/geokit/geocoders/geocodio.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def self.parse_json(json)
2828
loc.all.push(create_new_loc(address))
2929
end
3030
end
31-
loc.success = true
31+
loc.success = true unless loc.nil?
3232
loc
3333
end
3434

0 commit comments

Comments
 (0)