aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPCopyTable.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2013-05-09 18:25:40 +0000
committerrowanbeentje <rowan@beent.je>2013-05-09 18:25:40 +0000
commit3c2d200a38d80ad6fe86c34766c868abdf41bea9 (patch)
treebc47af728eef06108fcc605ed9a0ed7e48e1231c /Source/SPCopyTable.m
parent0075a9074cc88a724da80b9bc2621674ac79b006 (diff)
downloadsequelpro-3c2d200a38d80ad6fe86c34766c868abdf41bea9.tar.gz
sequelpro-3c2d200a38d80ad6fe86c34766c868abdf41bea9.tar.bz2
sequelpro-3c2d200a38d80ad6fe86c34766c868abdf41bea9.zip
- Fix hangs when adding columns to large tables after the table has beeen viewed already, addressing Issue #1710
Diffstat (limited to 'Source/SPCopyTable.m')
-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