Bug 355089 - ManifestLocalization.EmptyResource throws NPE on
ResourceBundle#containsKey()
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 eefad0d..5212b17 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 @@
this.localeString = locale;
}
+ @SuppressWarnings("unchecked")
public Enumeration<String> getKeys() {
- return null;
+ return Collections.enumeration(Collections.EMPTY_LIST);
}
protected Object handleGetObject(String arg0) throws MissingResourceException {