Commons CSV
  1. Commons CSV
  2. CSV-122

NullPointerException when empty header string and and null string of ""

    Details

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

      Description

      When setting the format to have a nullString of "" and having an empty header value, a nullPointerException is thrown.

        Activity

        Hide
        Mike Lewis added a comment -

        Test and fix

        Show
        Mike Lewis added a comment - Test and fix
        Hide
        Benedikt Ritter added a comment -
        bene@localhost:~/workspace/apache/commons/csv$ svn ci -m "CSV-122: NullPointerException when empty header string and and null string of \"\". Thanks to Mike Lewis."
        Sending        src/changes/changes.xml
        Sending        src/main/java/org/apache/commons/csv/CSVParser.java
        Sending        src/test/java/org/apache/commons/csv/CSVParserTest.java
        Transmitting file data ...
        Committed revision 1609768.
        
        Thanks!
        
        Show
        Benedikt Ritter added a comment - bene@localhost:~/workspace/apache/commons/csv$ svn ci -m "CSV-122: NullPointerException when empty header string and and null string of \" \ ". Thanks to Mike Lewis." Sending src/changes/changes.xml Sending src/main/java/org/apache/commons/csv/CSVParser.java Sending src/test/java/org/apache/commons/csv/CSVParserTest.java Transmitting file data ... Committed revision 1609768. Thanks!

          People

          • Assignee:
            Benedikt Ritter
            Reporter:
            Mike Lewis
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development