Skip to content

undefined method `strip' for nil:NilClass#50

Open
waldyr wants to merge 1 commit into
bradphelan:masterfrom
waldyr:master
Open

undefined method `strip' for nil:NilClass#50
waldyr wants to merge 1 commit into
bradphelan:masterfrom
waldyr:master

Conversation

@waldyr
Copy link
Copy Markdown

@waldyr waldyr commented Apr 30, 2013

I tried to create a post, although it returned an undefined method 'strip' for nil:NilClass. Searching for the root of the problem I figured out that #parse_csv can mistakely create Nil entries in array.

Take this as example:

"some text,\nandsomemore,,".parse_csv
=> ["some text", nil]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant