[ 
https://issues.apache.org/jira/browse/CSV-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14028925#comment-14028925
 ] 

Sebastian Hardt commented on CSV-121:
-------------------------------------

I use the libary in a project where users can upload a csv, to import data into 
the system.
They have a lot of csv like this, so this is a problem which exists in the real 
world. 
I  can change the patch, so this behaviour  can be configured by a flag in the 
csvparser.

> Exception that the header contains duplicate names when the column names are 
> empty.
> -----------------------------------------------------------------------------------
>
>                 Key: CSV-121
>                 URL: https://issues.apache.org/jira/browse/CSV-121
>             Project: Commons CSV
>          Issue Type: Bug
>            Reporter: Sebastian Hardt
>
> When having a header like a,,c,d,, an IllegalArgumentException("The header 
> contains duplicate names: " +Arrays.toString(header) is thrown because empty 
> header names are treated as a header with name. I sended in a pullrequest at 
> github: https://github.com/apache/commons-csv/pull/2



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to