You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Benedikt Ritter (JIRA)" <ji...@apache.org> on 2014/08/14 22:08:27 UTC

[jira] [Closed] (CSV-32) CSVParser.nextValue() does not handle a CSV file with a single value correctly

     [ 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)