Skip to content

Commit 9542a39

Browse files
committed
It looks like TWO record objects were created for each record read!
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1397902 13f79535-47bb-0310-9956-ffa450edef68
1 parent 0e8084a commit 9542a39

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/apache/commons/csv/CSVParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public long getRecordNumber() {
162162
* on parse error or input read-failure
163163
*/
164164
CSVRecord nextRecord() throws IOException {
165-
CSVRecord result = new CSVRecord(null, headerMap, null, recordNumber + 1);
165+
CSVRecord result = null;
166166
record.clear();
167167
StringBuilder sb = null;
168168
do {

0 commit comments

Comments
 (0)