diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-09-28 06:59:37 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-09-28 06:59:37 +0000 |
commit | 6d5b9ce9387a093b7e6889c944cfa7af33a707df (patch) | |
tree | 69a45d80fbdcffe2a6420e40ef2dd10e67637e7f /Source | |
parent | 93ff50a607998e12ef4a3c610458e0e8d2ac1d9e (diff) | |
download | sequelpro-6d5b9ce9387a093b7e6889c944cfa7af33a707df.tar.gz sequelpro-6d5b9ce9387a093b7e6889c944cfa7af33a707df.tar.bz2 sequelpro-6d5b9ce9387a093b7e6889c944cfa7af33a707df.zip |
• fixed exception while length checking for import into new table if checked value is not a NSString
- fixes issue 1649
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPFieldMapperController.m | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |