commit | 16a0a53d210ffbccc13bcac798ba964fb9c5255d | [log] [tgz] |
---|---|---|
author | Linda Chan <lchan@actuate.com> | Wed Jan 10 10:22:24 2007 +0000 |
committer | Linda Chan <lchan@actuate.com> | Wed Jan 10 10:22:24 2007 +0000 |
tree | 6580f5d94f4b9b4f4a0b6145aebf046e9213ee8f | |
parent | 93665a973083adb1ef2f718f86eef48b8deaa600 [diff] |
[169029] NPE when input argument is null when calling API method getTypeCode
diff --git a/plugins/org.eclipse.datatools.connectivity.oda.flatfile/META-INF/MANIFEST.MF b/plugins/org.eclipse.datatools.connectivity.oda.flatfile/META-INF/MANIFEST.MF index 3ae315d..032872b 100644 --- a/plugins/org.eclipse.datatools.connectivity.oda.flatfile/META-INF/MANIFEST.MF +++ b/plugins/org.eclipse.datatools.connectivity.oda.flatfile/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Bundle-ManifestVersion: 2 Bundle-Name: %plugin.name Bundle-SymbolicName: org.eclipse.datatools.connectivity.oda.flatfile; singleton:=true -Bundle-Version: 3.0.3.200612141 +Bundle-Version: 3.0.3.200701101 Bundle-Activator: org.eclipse.datatools.connectivity.oda.flatfile.plugin.FlatfilePlugin Bundle-Vendor: Eclipse.org Bundle-Localization: plugin
diff --git a/plugins/org.eclipse.datatools.connectivity.oda.flatfile/src/org/eclipse/datatools/connectivity/oda/flatfile/DataTypes.java b/plugins/org.eclipse.datatools.connectivity.oda.flatfile/src/org/eclipse/datatools/connectivity/oda/flatfile/DataTypes.java index b2745a3..1607abe 100644 --- a/plugins/org.eclipse.datatools.connectivity.oda.flatfile/src/org/eclipse/datatools/connectivity/oda/flatfile/DataTypes.java +++ b/plugins/org.eclipse.datatools.connectivity.oda.flatfile/src/org/eclipse/datatools/connectivity/oda/flatfile/DataTypes.java
@@ -43,6 +43,9 @@ */ public static int getTypeCode( String typeName ) throws OdaException { + if( typeName == null || typeName.trim().length() == 0 ) + return STRING; // default data type + String preparedTypeName = typeName.trim().toUpperCase(); if( preparedTypeName == NULL_LITERAL )