diff options
author | Thomas Watson | 2011-08-22 17:54:54 +0000 |
---|---|---|
committer | Thomas Watson | 2011-08-22 17:54:54 +0000 |
commit | c31d218de84897d1bc8b90d3c853716af3f965c2 (patch) | |
tree | a9c0fe9a0a12c364872642915fb19aee112047c5 | |
parent | fe711b408d3523f680c4e356221369581057e6ce (diff) | |
download | rt.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.java | 5 |
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 { |