aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-06-11 09:26:08 +0000
committerBibiko <bibiko@eva.mpg.de>2009-06-11 09:26:08 +0000
commit31f564a167a57a4878b0c4027aa6649b8727fb43 (patch)
tree551d0588630bcad74b6157944c6b3ae22eae5298
parent94a35280d5f542211abdef0e8c9de83a4e374d10 (diff)
downloadsequelpro-31f564a167a57a4878b0c4027aa6649b8727fb43.tar.gz
sequelpro-31f564a167a57a4878b0c4027aa6649b8727fb43.tar.bz2
sequelpro-31f564a167a57a4878b0c4027aa6649b8727fb43.zip
• fixed exception if content table view wants to load data from a table but the table data are not accessible (e.g. for information_schema)
- this fix sets the content table view into a defined state as well
-rw-r--r--Source/TableContent.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/TableContent.m b/Source/TableContent.m
index da8a9745..a6c297b2 100644
--- a/Source/TableContent.m
+++ b/Source/TableContent.m
@@ -112,7 +112,7 @@
// If no table has been supplied, reset the view to a blank table and disabled elements.
// [tableDataInstance tableEncoding] == nil indicates that an error occured while retrieving table data
- if ( [aTable isEqualToString:@""] || !aTable || [tableDataInstance tableEncoding] == nil)
+ if ( [[[tableDataInstance statusValues] objectForKey:@"Rows"] isKindOfClass:[NSNull class]] || [aTable isEqualToString:@""] || !aTable || [tableDataInstance tableEncoding] == nil)
{
// Empty the stored data arrays
[fullResult removeAllObjects];