aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/SPTableData.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/SPTableData.m b/Source/SPTableData.m
index 1807b66e..b75f6dd5 100644
--- a/Source/SPTableData.m
+++ b/Source/SPTableData.m
@@ -350,6 +350,10 @@
NSArray *syntaxResult = [theResult fetchRowAsArray];
NSArray *resultFieldNames = [theResult fetchFieldNames];
+ // Only continue if syntaxResult is not nil. This accommodates causes where the above query caused the
+ // connection reconnect dialog to appear and the user chose to close the connection.
+ if (!syntaxResult) return nil;
+
if (tableCreateSyntax != nil) [tableCreateSyntax release];
tableCreateSyntax = [[NSString alloc] initWithString:[syntaxResult objectAtIndex:1]];