commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeanette Winzenburg (JIRA)" <>
Subject [jira] [Created] (CSV-100) CSVParser: getHeaderMap throws NPE
Date Wed, 18 Sep 2013 13:01:52 GMT
Jeanette Winzenburg created CSV-100:

             Summary: CSVParser: getHeaderMap throws NPE 
                 Key: CSV-100
             Project: Commons CSV
          Issue Type: Bug
          Components: Parser
         Environment: commons-cvs version is the git-clone of current trunk
            Reporter: Jeanette Winzenburg

title nearly says it all :-) 

Given a CSVParser parser, the following line throws an NPE:

Map<String, Integer> header = parser.getHeaderMap();


Caused by: java.lang.NullPointerException
at java.util.HashMap.<init>(
at java.util.LinkedHashMap.<init>(
at org.apache.commons.csv.CSVParser.getHeaderMap(

happens if the format doesn't have a headerMap.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message