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

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        17h 2m 1 Gary Gregory 13/Mar/14 00:18
        Resolved Resolved Closed Closed
        154d 19h 48m 1 Benedikt Ritter 14/Aug/14 21:06
        Benedikt Ritter made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Gary Gregory made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Gary Gregory [ garydgregory ]
        Fix Version/s 1.0 [ 12320161 ]
        Resolution Fixed [ 1 ]
        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...
        Georg Lodde created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development