aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFieldMapperController.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-09-28 06:59:37 +0000
committerBibiko <bibiko@eva.mpg.de>2010-09-28 06:59:37 +0000
commit6d5b9ce9387a093b7e6889c944cfa7af33a707df (patch)
tree69a45d80fbdcffe2a6420e40ef2dd10e67637e7f /Source/SPFieldMapperController.m
parent93ff50a607998e12ef4a3c610458e0e8d2ac1d9e (diff)
downloadsequelpro-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/SPFieldMapperController.m')
-rw-r--r--Source/SPFieldMapperController.m4
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) {