aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableData.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPTableData.m')
-rw-r--r--Source/SPTableData.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPTableData.m b/Source/SPTableData.m
index 6f7c6702..fb777b9d 100644
--- a/Source/SPTableData.m
+++ b/Source/SPTableData.m
@@ -809,6 +809,8 @@
*/
- (NSDictionary *) parseFieldDefinitionStringParts:(NSArray *)definitionParts
{
+ if (![definitionParts count]) return [NSDictionary dictionary];
+
SPSQLParser *detailParser;
SPSQLParser *fieldParser = [[SPSQLParser alloc] init];
NSMutableDictionary *fieldDetails = [[NSMutableDictionary alloc] init];
@@ -816,8 +818,6 @@
NSString *detailString;
int i, definitionPartsIndex = 0, partsArrayLength;
- if (![definitionParts count]) return [NSDictionary dictionary];
-
// Skip blank items within the definition parts
while (definitionPartsIndex < [definitionParts count]
&& ![[[definitionParts objectAtIndex:definitionPartsIndex] stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]] length])