Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2011-08-22 17:54:54 +0000
committerThomas Watson2011-08-22 17:54:54 +0000
commitc31d218de84897d1bc8b90d3c853716af3f965c2 (patch)
treea9c0fe9a0a12c364872642915fb19aee112047c5
parentfe711b408d3523f680c4e356221369581057e6ce (diff)
downloadrt.equinox.framework-c31d218de84897d1bc8b90d3c853716af3f965c2.tar.gz
rt.equinox.framework-c31d218de84897d1bc8b90d3c853716af3f965c2.tar.xz
rt.equinox.framework-c31d218de84897d1bc8b90d3c853716af3f965c2.zip
Bug 355089 - ManifestLocalization.EmptyResource throws NPE onv20110822-1622
ResourceBundle#containsKey()
-rw-r--r--bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/ManifestLocalization.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/ManifestLocalization.java b/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/ManifestLocalization.java
index eefad0d75..5212b1733 100644
--- a/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/ManifestLocalization.java
+++ b/bundles/org.eclipse.osgi/core/framework/org/eclipse/osgi/framework/internal/core/ManifestLocalization.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2004, 2010 IBM Corporation and others.
+ * Copyright (c) 2004, 2011 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -211,8 +211,9 @@ public class ManifestLocalization {
this.localeString = locale;
}
+ @SuppressWarnings("unchecked")
public Enumeration<String> getKeys() {
- return null;
+ return Collections.enumeration(Collections.EMPTY_LIST);
}
protected Object handleGetObject(String arg0) throws MissingResourceException {

Back to the top