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-22 03:31:07 +0200
commit96e6f4b75b1a27d24b9bfa9a2381c391e971f977 (patch)
treea46596dbaeb97ff5c2f2ef3c7861e5237e6b7adf /Source
parent1d32954fbe70f6d98784eced88f29c47903f27c7 (diff)
downloadsequelpro-96e6f4b75b1a27d24b9bfa9a2381c391e971f977.tar.gz
sequelpro-96e6f4b75b1a27d24b9bfa9a2381c391e971f977.tar.bz2
sequelpro-96e6f4b75b1a27d24b9bfa9a2381c391e971f977.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;
}