[ 
https://issues.apache.org/jira/browse/CSV-32?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benedikt Ritter closed CSV-32.
------------------------------


> CSVParser.nextValue() does not handle a CSV file with a single value correctly
> ------------------------------------------------------------------------------
>
>                 Key: CSV-32
>                 URL: https://issues.apache.org/jira/browse/CSV-32
>             Project: Commons CSV
>          Issue Type: Bug
>          Components: Parser
>            Reporter: Bob Smith
>            Priority: Minor
>             Fix For: 1.0
>
>         Attachments: CSVParser_SingleValueFix.patch
>
>
> For a CSV file with a single value in it (like if your entire file is just 
> "test"), CSVParser.nextValue() returns null the first time it is called 
> instead of the value.
> CSVParser.getLine() and CSVParser.getAllValues() do not value this problem.  
> The problem seems to be that getLine() has special handling for the "TT_EOF" 
> tokens that nextValue() does not have.



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

Reply via email to