diff options
author | Max <post@wickenrode.com> | 2015-06-22 03:31:07 +0200 |
---|---|---|
committer | Max <post@wickenrode.com> | 2015-06-22 03:31:07 +0200 |
commit | 96e6f4b75b1a27d24b9bfa9a2381c391e971f977 (patch) | |
tree | a46596dbaeb97ff5c2f2ef3c7861e5237e6b7adf /Source | |
parent | 1d32954fbe70f6d98784eced88f29c47903f27c7 (diff) | |
download | sequelpro-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.m | 2 |
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; } |