Bug 94829 - NPE during startup after crash
Summary: NPE during startup after crash
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.1   Edit
Hardware: PC Linux-GTK
: P3 critical (vote)
Target Milestone: 3.1 M7   Edit
Assignee: John Arthorne CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-11 15:38 EDT by John Arthorne CLA
Modified: 2005-05-11 17:30 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 John Arthorne CLA 2005-05-11 15:38:41 EDT
Build: I20050509-2010

My process got a GPF and exited.  When I tried to restart, an NPE occurred that
prevented startup from suceeding. Marking critical because the workspace was
unusable after that point (I had to manually delete some metadata files before
getting it to start again).

Caused by: java.lang.NullPointerException
	at org.eclipse.core.internal.resources.Container.members(Container.java:184)
	at org.eclipse.core.internal.resources.Container.members(Container.java:163)
	at
org.eclipse.core.internal.resources.AliasManager.addToLocationsMap(AliasManager.java:323)
	at
org.eclipse.core.internal.resources.AliasManager.buildLocationsMap(AliasManager.java:367)
	at org.eclipse.core.internal.resources.AliasManager.startup(AliasManager.java:562)
	at org.eclipse.core.internal.resources.Workspace.startup(Workspace.java:1871)
	at org.eclipse.core.internal.resources.Workspace.open(Workspace.java:1642)
	at org.eclipse.core.resources.ResourcesPlugin.startup(ResourcesPlugin.java:357)
	at
org.eclipse.core.internal.compatibility.PluginActivator.start(PluginActivator.java:31)
	at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:994)
	at java.security.AccessController.doPrivileged(AccessController.java:189)
Comment 1 John Arthorne CLA 2005-05-11 15:48:46 EDT
I believe the fix is to just instantiate RefreshManager before AliasManager in
the workspace startup routine.
Comment 2 John Arthorne CLA 2005-05-11 17:30:08 EDT
Fix released to HEAD.