aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r--Source/TableDocument.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index 1df0698a..42d1309d 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -147,7 +147,7 @@
}
// Update the selected database if appropriate
- if (![[connectionController database] isEqualToString:@""]) {
+ if ([connectionController database] && ![[connectionController database] isEqualToString:@""]) {
if (selectedDatabase) [selectedDatabase release], selectedDatabase = nil;
selectedDatabase = [[connectionController database] retain];
}