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 b1cbbda8..077b7f4f 100644
--- a/Source/TableDump.m
+++ b/Source/TableDump.m
@@ -1185,7 +1185,7 @@
fieldMappingTableColumnNames = [NSArray arrayWithArray:[fieldMapperController fieldMappingTableColumnNames]];
fieldMappingGlobalValueArray = [[NSArray arrayWithArray:[fieldMapperController fieldMappingGlobalValueArray]] retain];
- if([fieldMappingGlobalValueArray count] > [fieldMappingArray count])
+ if([fieldMappingImportArray count] && [fieldMappingGlobalValueArray count] > [NSArrayObjectAtIndex(fieldMappingImportArray,0) count])
fieldMappingArrayHasGlobalVariables = YES;
[importFieldNamesSwitch setState:[fieldMapperController importFieldNamesHeader]];