Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321168 - NPE in CachedManifest.
Summary: NPE in CachedManifest.
Status: CLOSED DUPLICATE of bug 304213
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Framework (show other bugs)
Version: 3.4.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: equinox.framework-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-28 14:55 EDT by Gary Karasiuk CLA
Modified: 2010-07-28 15:25 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***