diff options
author | Clemente Lodi-Fè | 2013-03-01 15:00:55 +0000 |
---|---|---|
committer | Martin Reiterer | 2013-03-01 15:00:55 +0000 |
commit | 3ebff0e0e3872f61e2264f3a304bc4345f65746b (patch) | |
tree | 0559a49cb40a397b8d18c63341c04fc6a7ac8aab | |
parent | 4cd06d3e8f81a314bae64ac9b768349e6f3f4208 (diff) | |
download | plugins-3ebff0e0e3872f61e2264f3a304bc4345f65746b.tar.gz plugins-3ebff0e0e3872f61e2264f3a304bc4345f65746b.tar.xz plugins-3ebff0e0e3872f61e2264f3a304bc4345f65746b.zip |
[401558] "Remove Language from Project" throws an Exception
-rw-r--r-- | org.eclipse.babel.tapiji.tools.core.ui/src/org/eclipse/babel/tapiji/tools/core/ui/ResourceBundleManager.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.babel.tapiji.tools.core.ui/src/org/eclipse/babel/tapiji/tools/core/ui/ResourceBundleManager.java b/org.eclipse.babel.tapiji.tools.core.ui/src/org/eclipse/babel/tapiji/tools/core/ui/ResourceBundleManager.java index 644b4a0..f06a4f7 100644 --- a/org.eclipse.babel.tapiji.tools.core.ui/src/org/eclipse/babel/tapiji/tools/core/ui/ResourceBundleManager.java +++ b/org.eclipse.babel.tapiji.tools.core.ui/src/org/eclipse/babel/tapiji/tools/core/ui/ResourceBundleManager.java @@ -790,8 +790,9 @@ public class ResourceBundleManager { if (!rb_l.isEmpty()) { Object[] bundlelocales = rb_l.toArray(); for (Object l : bundlelocales) { - /* TODO check if useful to add the default */ - if (!locales.contains(l)) { + /* TODO check if useful to add the default. For now the default is not + * being used and is ignored as it is null */ + if (l != null && !locales.contains(l)) { locales.add((Locale) l); } } |