Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjfogell2006-01-12 17:26:16 -0500
committerjfogell2006-01-12 17:26:16 -0500
commit2325f603c96bc9583251370133fc7a8172a2c541 (patch)
treeb45363c1bc8160779252781db4d9fdbac799f5b0
parent2c493bafb995cdcbe29eba329cd38ba1dc9b42c7 (diff)
downloadrt.equinox.bundles-2325f603c96bc9583251370133fc7a8172a2c541.tar.gz
rt.equinox.bundles-2325f603c96bc9583251370133fc7a8172a2c541.tar.xz
rt.equinox.bundles-2325f603c96bc9583251370133fc7a8172a2c541.zip
added check for length == 0 in isLocaleValid
-rw-r--r--bundles/org.eclipse.equinox.metatype/src/org/eclipse/equinox/metatype/MetaTypeProviderImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.metatype/src/org/eclipse/equinox/metatype/MetaTypeProviderImpl.java b/bundles/org.eclipse.equinox.metatype/src/org/eclipse/equinox/metatype/MetaTypeProviderImpl.java
index 5d884703..693cc388 100644
--- a/bundles/org.eclipse.equinox.metatype/src/org/eclipse/equinox/metatype/MetaTypeProviderImpl.java
+++ b/bundles/org.eclipse.equinox.metatype/src/org/eclipse/equinox/metatype/MetaTypeProviderImpl.java
@@ -158,7 +158,7 @@ public class MetaTypeProviderImpl implements MetaTypeProvider {
public boolean isInvalidLocale(String locale) {
// Just a simple and quick check here.
- if (locale == null)
+ if (locale == null || locale.length() == 0)
return false;
int idx_first = locale.indexOf(ObjectClassDefinitionImpl.LOCALE_SEP);

Back to the top