aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/TableDump.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/TableDump.m b/Source/TableDump.m
index 9b75c757..d5e6d563 100644
--- a/Source/TableDump.m
+++ b/Source/TableDump.m
@@ -878,7 +878,7 @@
// Extract and process any full CSV rows found so far. Also trigger processing if all
// rows have been read, in order to ensure short files are still processed.
- while ((csvRowArray = [csvParser getRowAsArrayAndTrimString:YES stringIsComplete:allDataRead]) || (allDataRead && !fieldMappingArray)) {
+ while ((csvRowArray = [csvParser getRowAsArrayAndTrimString:YES stringIsComplete:allDataRead]) || (allDataRead && [parsedRows count])) {
// If valid, add the row array and length to local storage
if (csvRowArray) {