aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/SPTableStructure.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPTableStructure.m b/Source/SPTableStructure.m
index 83513b21..c6e4d7f7 100644
--- a/Source/SPTableStructure.m
+++ b/Source/SPTableStructure.m
@@ -432,9 +432,9 @@
if([result count])
type = [[result objectAtIndex:0] objectForKey:@"Optimal_fieldtype"];
- if(!type || ![type length]) {
+ if(!type || [type isKindOfClass:[NSNull class]] || ![type length])
type = NSLocalizedString(@"No optimized field type found.", @"no optimized field type found. message");
- }
+
[[NSAlert alertWithMessageText:[NSString stringWithFormat:NSLocalizedString(@"Optimized type for field '%@'", @"Optimized type for field %@"), [[tableFields objectAtIndex:[tableSourceView selectedRow]] objectForKey:@"name"]]
defaultButton:@"OK"
alternateButton:nil