diff options
author | Max <post@wickenrode.com> | 2015-06-22 03:31:07 +0200 |
---|---|---|
committer | Max <post@wickenrode.com> | 2015-06-29 21:56:03 +0200 |
commit | e48ae77b1bc2bcd3bebfd7121c59ee9afa493f6f (patch) | |
tree | 12f53f2453334ce49404266f3e2360b64ea9a270 /Source | |
parent | ae0d7a32efdfec92436151db8c5cfb634c4706c6 (diff) | |
download | sequelpro-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.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; } |