Project

General

Profile

Actions

Bug #9661

closed

CSV Header Conversion Causes NoMethodError For Empty Headers

Added by sshaw (s shaw) about 10 years ago. Updated almost 10 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.1.0dev (2013-09-22 trunk 43011) [x86_64-darwin12.4.0]
[ruby-core:61630]

Description

Empty headers are parsed and returned as nil. CSV's symbol and downcase header converters call encode() on nil, causing a NoMethodError.

I've created a pull request with the fix: https://github.com/ruby/ruby/pull/575

Actions

Also available in: Atom PDF

Like0
Like0