Uploaded image for project: 'Commons CSV'
  1. Commons CSV
  2. CSV-32

CSVParser.nextValue() does not handle a CSV file with a single value correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • None
    • 1.0
    • Parser
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bob smith Bob Smith
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: