diff options
author | jeg2 <jeg2@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-01 14:35:03 +0000 |
---|---|---|
committer | jeg2 <jeg2@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-01 14:35:03 +0000 |
commit | 7c4d4e1eb2897cec295ea9316835fc3cfef96d6d (patch) | |
tree | ea5c883071e0e42591b68b01d380d13a165376f2 /lib | |
parent | 86034eafb2fb38ad28b181e39f4dd7514260fe0b (diff) | |
download | ruby-7c4d4e1eb2897cec295ea9316835fc3cfef96d6d.tar.gz |
* lib/csv.rb: Don't attempt to convert nil headers.
Reported by Skye Shaw
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/csv.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/csv.rb b/lib/csv.rb index 2326792cd7..16a38a17cf 100644 --- a/lib/csv.rb +++ b/lib/csv.rb @@ -2168,6 +2168,7 @@ class CSV fields.map.with_index do |field, index| converters.each do |converter| + break if field.nil? field = if converter.arity == 1 # straight field converter converter[field] else # FieldInfo converter |