[401558] "Remove Language from Project" throws an Exception
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 @@ 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); } }