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

Bug 88326

Summary: NPE in editor manger
Product: [Eclipse Project] Platform Reporter: Dirk Baeumer <dirk_baeumer>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: major    
Priority: P3    
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Dirk Baeumer CLA 2005-03-17 09:20:38 EST
I get the following NPE in the editor manager (sometimes). 


Caused by: java.lang.NullPointerException
	at
org.eclipse.ui.internal.EditorManager.reuseInternalEditor(EditorManager.java:866)
	at
org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:637)
	at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:626)
	at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2234)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2168)
	at org.eclipse.ui.internal.WorkbenchPage.access$8(WorkbenchPage.java:2160)
	at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2146)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2141)
	at
org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$1.run(SourceLookupFacility.java:351)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
	at
org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.openEditor(SourceLookupFacility.java:360)
	at
org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.openEditor(SourceLookupFacility.java:287)
	at
org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.display(SourceLookupFacility.java:209)
	at org.eclipse.debug.ui.DebugUITools.displaySource(DebugUITools.java:673)
	at
org.eclipse.debug.internal.ui.views.launch.LaunchView$SourceDisplayJob.runInUIThread(LaunchView.java:204)
	at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:93)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:118)
Comment 1 Dirk Baeumer CLA 2005-03-17 09:22:55 EST
As soon as I am in this state the only workaround that helps is to close all
editors.
Comment 2 Kim Horne CLA 2005-03-17 09:26:15 EST

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