aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableData.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPTableData.m')
-rw-r--r--Source/SPTableData.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/SPTableData.m b/Source/SPTableData.m
index 35d7060b..6e169e09 100644
--- a/Source/SPTableData.m
+++ b/Source/SPTableData.m
@@ -781,7 +781,8 @@
// The character set has to be guessed at via the database encoding.
// Add the details to the data object.
viewData = [NSMutableDictionary dictionary];
- [viewData setObject:[NSString stringWithString:[tableDocumentInstance databaseEncoding]] forKey:@"encoding"];
+ if (tableDocumentInstance)
+ [viewData setObject:[NSString stringWithString:[tableDocumentInstance databaseEncoding]] forKey:@"encoding"];
[viewData setObject:[NSArray arrayWithArray:tableColumns] forKey:@"columns"];
[tableColumns release];