Bug 71298 - [EditorMgmt] NullPointerException in org.eclipse.ui.internal.EditorManager
Summary: [EditorMgmt] NullPointerException in org.eclipse.ui.internal.EditorManager
Status: RESOLVED DUPLICATE of bug 71322
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nick Edgar CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-03 11:55 EDT by Michael Spiegel CLA
Modified: 2004-08-03 16:04 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Spiegel CLA 2004-08-03 11:55:01 EDT
I'm trying to use a FileEditorInputFactory within my plugin.  I've added the
extension point to my plugin.xml.  I keep on getting the error, "Unable to
restore editor - no input factory ID."

I've tracked the problem down to org.eclipse.ui.internal.EditorManager, where I
get a NullPointerException thrown here:

// TODO - DDW - dynamic UI - a check for a null input was deliberately removed here.
if (input instanceof IPathEditorInput) {
	editorMem.putString(IWorkbenchConstants.TAG_PATH,((IPathEditorInput)input).getPath().toString());
}

So am I doing something wrong on my end, or is there a cleanup needed in this
eclipse code?
Comment 1 Nick Edgar CLA 2004-08-03 16:04:23 EDT

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