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

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment