summaryrefslogtreecommitdiff
path: root/lib/csv.rb
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-22 06:57:00 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-22 06:57:00 +0000
commitffb49a7e9b8ed9cc130508ff4306dd1c0a38e6c8 (patch)
tree3d57e6a3e9350acf615437cf25d719bbf41909cd /lib/csv.rb
parentede0df3a9b38d18f46aecf70075dda688c9bd4c1 (diff)
Fixed regression to convert blank value at r45497.
[Bug #11126][ruby-core:69088] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/csv.rb')
-rw-r--r--lib/csv.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/csv.rb b/lib/csv.rb
index 20c9f152a8..14025c1cd1 100644
--- a/lib/csv.rb
+++ b/lib/csv.rb
@@ -2207,7 +2207,7 @@ class CSV
fields.map.with_index do |field, index|
converters.each do |converter|
- break if field.nil?
+ break if headers && field.nil?
field = if converter.arity == 1 # straight field converter
converter[field]
else # FieldInfo converter