aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/SPCopyTable.m6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/SPCopyTable.m b/Source/SPCopyTable.m
index 02ff29ec..1b414170 100644
--- a/Source/SPCopyTable.m
+++ b/Source/SPCopyTable.m
@@ -803,8 +803,12 @@ static const NSInteger kBlobAsImageFile = 4;
// Retrieve the cell's content
contentString = [tableStorage cellDataAtRow:i column:columnIndex];
+ // If the cell hasn't loaded yet, skip processing
+ if (!contentString)
+ continue;
+
// Get WKT string out of the SPMySQLGeometryData for calculation
- if ([contentString isKindOfClass:spmysqlGeometryData])
+ else if ([contentString isKindOfClass:spmysqlGeometryData])
contentString = [contentString wktString];
// Replace NULLs with their placeholder string