From 6d5b9ce9387a093b7e6889c944cfa7af33a707df Mon Sep 17 00:00:00 2001 From: Bibiko Date: Tue, 28 Sep 2010 06:59:37 +0000 Subject: =?UTF-8?q?=E2=80=A2=20fixed=20exception=20while=20length=20checki?= =?UTF-8?q?ng=20for=20import=20into=20new=20table=20if=20checked=20value?= =?UTF-8?q?=20is=20not=20a=20NSString=20-=20fixes=20issue=201649?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPFieldMapperController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source') diff --git a/Source/SPFieldMapperController.m b/Source/SPFieldMapperController.m index ccb6d616..ac6f46e7 100644 --- a/Source/SPFieldMapperController.m +++ b/Source/SPFieldMapperController.m @@ -803,8 +803,8 @@ continue; } columnCounter = 0; - for(NSString* col in row) { - if(maxLengthOfSourceColumns[columnCounter] < [col length]) { + for(id col in row) { + if([col isKindOfClass:[NSString class]] && maxLengthOfSourceColumns[columnCounter] < [col length]) { maxLengthOfSourceColumns[columnCounter] = [col length]; } if(typeOfSourceColumns[columnCounter] == 1) { -- cgit v1.2.3