aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-06-22 03:31:07 +0200
committerMax <post@wickenrode.com>2015-06-29 21:56:03 +0200
commite48ae77b1bc2bcd3bebfd7121c59ee9afa493f6f (patch)
tree12f53f2453334ce49404266f3e2360b64ea9a270 /Source
parentae0d7a32efdfec92436151db8c5cfb634c4706c6 (diff)
downloadsequelpro-e48ae77b1bc2bcd3bebfd7121c59ee9afa493f6f.tar.gz
sequelpro-e48ae77b1bc2bcd3bebfd7121c59ee9afa493f6f.tar.bz2
sequelpro-e48ae77b1bc2bcd3bebfd7121c59ee9afa493f6f.zip
Try to fix an exception that occured after losing a connection followed by unknown events
Diffstat (limited to 'Source')
-rw-r--r--Source/SPTableData.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPTableData.m b/Source/SPTableData.m
index d477b444..9b641347 100644
--- a/Source/SPTableData.m
+++ b/Source/SPTableData.m
@@ -1146,7 +1146,7 @@
// Fetch the number of rows
SPMySQLResult *rowResult = [mySQLConnection queryString:[NSString stringWithFormat:@"SELECT COUNT(1) FROM %@", [[tableListInstance tableName] backtickQuotedString]]];
- if ([mySQLConnection queryErrored]) {
+ if ([mySQLConnection queryErrored] || !rowResult) {
return NO;
}