Commons CSV
  1. Commons CSV
  2. CSV-106

CSVFormat.format allways append null

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.x
    • Fix Version/s: 1.0
    • Component/s: Parser
    • Labels:
      None

      Description

      When I now call
      CSVFormat.newFormat(';').withSkipHeaderRecord(true).withHeader("H1","H2").format("A","B")
      I get the output A;Bnull

      The expected output would be

      A;B

        Activity

        Hide
        Gary Gregory added a comment -

        Thank you for the report. Keep them coming!

        commit -m "[CSV-106] CSVFormat.format always append null." C:/vcs/svn/apache/commons/trunks-proper/csv/src/test/java/org/apache/commons/csv/CSVFormatTest.java C:/vcs/svn/apache/commons/trunks-proper/csv/src/main/java/org/apache/commons/csv/CSVPrinter.java
            Sending        C:/vcs/svn/apache/commons/trunks-proper/csv/src/main/java/org/apache/commons/csv/CSVPrinter.java
            Sending        C:/vcs/svn/apache/commons/trunks-proper/csv/src/test/java/org/apache/commons/csv/CSVFormatTest.java
            Transmitting file data ...
            Committed revision 1577011.
        
        Show
        Gary Gregory added a comment - Thank you for the report. Keep them coming! commit -m "[CSV-106] CSVFormat.format always append null." C:/vcs/svn/apache/commons/trunks-proper/csv/src/test/java/org/apache/commons/csv/CSVFormatTest.java C:/vcs/svn/apache/commons/trunks-proper/csv/src/main/java/org/apache/commons/csv/CSVPrinter.java Sending C:/vcs/svn/apache/commons/trunks-proper/csv/src/main/java/org/apache/commons/csv/CSVPrinter.java Sending C:/vcs/svn/apache/commons/trunks-proper/csv/src/test/java/org/apache/commons/csv/CSVFormatTest.java Transmitting file data ... Committed revision 1577011.
        Hide
        Gary Gregory added a comment -

        I can see how your example would do that. I'll address it am done with the flu...

        Show
        Gary Gregory added a comment - I can see how your example would do that. I'll address it am done with the flu...

          People

          • Assignee:
            Gary Gregory
            Reporter:
            Georg Lodde
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development