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

Bug 235213

Summary: fail gracefully if an editor is restored for a non-existing task
Product: z_Archived Reporter: Steffen Pingel <steffen.pingel>
Component: MylynAssignee: Steffen Pingel <steffen.pingel>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P2 CC: robert.elves
Version: unspecified   
Target Milestone: 3.1   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Steffen Pingel CLA 2008-06-02 15:55:57 EDT
This is the exception when a memento is restored for a non-existing task:

!MESSAGE Unable to create editor ID org.eclipse.mylyn.tasks.ui.editors.task: Factory org.eclipse.mylyn.tasks.ui.elementFactories.task.editor returned null from createElement for editor id=org.eclipse.mylyn.tasks.ui.editors.task name=401: New repository location if url has spaces
!STACK 1
org.eclipse.ui.PartInitException: Factory org.eclipse.mylyn.tasks.ui.elementFactories.task.editor returned null from createElement for editor id=org.eclipse.mylyn.tasks.ui.editors.task name=401: New repository location if url has spaces
        at org.eclipse.ui.internal.EditorReference.getRestoredInput(EditorReference.java:367)
        at org.eclipse.ui.internal.EditorReference.getEditorInput(EditorReference.java:328)
        at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:591)
        at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:428)
        at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594)
        at org.eclipse.ui.internal.WorkbenchPage$7.run(WorkbenchPage.java:2026)
        at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:177)
        at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
        at org.eclipse.swt.widgets.Display.syncExec(Display.java:4018)
        at org.eclipse.ui.internal.WorkbenchPage.getEditors(WorkbenchPage.java:2023)
        at org.eclipse.mylyn.internal.context.ui.actions.FocusOutlineAction.getViewers(FocusOutlineAction.java:85)
        at org.eclipse.mylyn.context.ui.AbstractFocusViewAction.valueChanged(AbstractFocusViewAction.java:249)
        at org.eclipse.mylyn.context.ui.AbstractFocusViewAction.update(AbstractFocusViewAction.java:229)
        at org.eclipse.mylyn.context.ui.AbstractFocusViewAction$1.contextDeactivated(AbstractFocusViewAction.java:105)
        at org.eclipse.mylyn.internal.context.core.InteractionContextManager.deactivateContext(InteractionContextManager.java:367)
        at org.eclipse.mylyn.internal.tasks.ui.TasksUiPlugin$1.taskDeactivated(TasksUiPlugin.java:261)
        at org.eclipse.mylyn.internal.tasks.core.TaskActivityManager.deactivateTask(TaskActivityManager.java:401)
        at org.eclipse.mylyn.internal.tasks.ui.actions.TaskDeactivateAction.run(TaskDeactivateAction.java:37)
        at org.eclipse.mylyn.internal.tasks.ui.views.TaskListCellModifier.toggleTaskActivation(TaskListCellModifier.java:133)
        at org.eclipse.mylyn.internal.tasks.ui.views.TaskListView$7.mouseDown(TaskListView.java:843)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:178)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1154)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3398)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3030)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2387)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2351)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2203)
        at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:112)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:379)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
!SUBENTRY 1 org.eclipse.ui 4 0 2008-06-02 11:53:40.291
!MESSAGE Factory org.eclipse.mylyn.tasks.ui.elementFactories.task.editor returned null from createElement for editor id=org.eclipse.mylyn.tasks.ui.editors.task name=401: New repository location if url has spaces
Comment 1 Mik Kersten CLA 2008-06-03 12:42:47 EDT
I think that this is really important in terms of user upgrade experience for 3.0, so either you or Rob should consider taking it on.
Comment 2 Steffen Pingel CLA 2008-06-04 04:15:13 EDT
This has been the case for a long time and should only apply to the first startup. Marking P3 for now.
Comment 3 Steffen Pingel CLA 2008-06-13 04:28:02 EDT

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