Skip to content

error occurs when there is the null field #6

@maeken2010

Description

@maeken2010

Hi

I'm using this tool for some csv files.
then, I discover that error occurs when there is the null field.
For example, if specifying these csv files, occurs NoMethodError.

a.csv

ID,description,
1,hoge,
2,huga,
3,poyo,

b.csv

ID,description
1,hoge
2,huge
3,piyo
diff = CSVDiff.new("a.csv", "b.csv")
NoMethodError: undefined method `upcase' for nil:NilClass

I think, to need rename fild nil to "NULL" in CSVSource.
But, I dont think it's the best solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions