summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClemente Lodi-Fè2013-03-01 10:00:55 (EST)
committer Martin Reiterer2013-03-01 10:00:55 (EST)
commit3ebff0e0e3872f61e2264f3a304bc4345f65746b (patch)
tree0559a49cb40a397b8d18c63341c04fc6a7ac8aab
parent4cd06d3e8f81a314bae64ac9b768349e6f3f4208 (diff)
downloadplugins-3ebff0e0e3872f61e2264f3a304bc4345f65746b.zip
plugins-3ebff0e0e3872f61e2264f3a304bc4345f65746b.tar.gz
plugins-3ebff0e0e3872f61e2264f3a304bc4345f65746b.tar.bz2
[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.java5
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);
}
}