From f7f5013b74e890c743482a3f6bb5dd36690a36da Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Mon, 18 Feb 2013 01:05:32 +0000 Subject: - Add a check for SPNotLoaded values when automatically generating new tables when importing CSVs, fixing Issue #1621 (SPNotLoaded values are generated when rows shorter than the header row are seen) --- Source/SPFieldMapperController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/SPFieldMapperController.m b/Source/SPFieldMapperController.m index b4982a22..b31928d5 100644 --- a/Source/SPFieldMapperController.m +++ b/Source/SPFieldMapperController.m @@ -848,7 +848,7 @@ static NSString *SPTableViewSqlColumnID = @"sql"; } columnCounter = 0; for(id col in row) { - if(col && ![col isNSNull]) { + if(col && ![col isNSNull] && ![col isSPNotLoaded]) { if([col isKindOfClass:[NSString class]] && maxLengthOfSourceColumns[columnCounter] < (NSInteger)[(NSString*)col length]) { maxLengthOfSourceColumns[columnCounter] = [(NSString*)col length]; } -- cgit v1.2.3