Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 321168

Summary: NPE in CachedManifest.
Product: [Eclipse Project] Equinox Reporter: Gary Karasiuk <karasiuk>
Component: FrameworkAssignee: equinox.framework-inbox <equinox.framework-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: tjwatson
Version: 3.4.2   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Gary Karasiuk CLA 2010-07-28 14:55:58 EDT
I am running an adopting product and I am hitting this NPE when trying to get the headers. This is using org.eclipse.osgi_3.4.4.R34x_v20091203.jar

java.lang.NullPointerException
at org.eclipse.core.runtime.internal.adaptor.CachedManifest.keys(CachedManifest.java:64)
at org.eclipse.osgi.framework.internal.core.ManifestLocalization.getHeaders(ManifestLocalization.java:57)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getHeaders(AbstractBundle.java:1021)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getHeaders(AbstractBundle.java:968)
at com.ibm.etools.performance.core.internal.handlers.DumpWorkspace$DumpWorkspaceJob.writeBundleInfo(DumpWorkspace.java:560)
at com.ibm.etools.performance.core.internal.handlers.DumpWorkspace$DumpWorkspaceJob.run(DumpWorkspace.java:363)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Comment 1 Gary Karasiuk CLA 2010-07-28 14:58:35 EDT
Here is the method that is failing:


	public Enumeration keys() {
		//TODO: getManifest may return null		
		return getManifest().keys();
	}

it looks like this was a problem waiting to happen.
Comment 2 Thomas Watson CLA 2010-07-28 15:25:45 EDT

*** This bug has been marked as a duplicate of bug 304213 ***