Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 194819 - NPE in InternalFileSystemCore.getStore while removing item from file history
Summary: NPE in InternalFileSystemCore.getStore while removing item from file history
Status: RESOLVED DUPLICATE of bug 187877
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-28 14:21 EDT by Nick Edgar CLA
Modified: 2007-06-28 17:17 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 Nick Edgar CLA 2007-06-28 14:21:16 EDT
3.3 M7

- tried opening an image attachment from a work item editor
- it worked (opening the image in an external browser), but it also generated an error dialog and log entry for the following error, which appears to be unrelated to the open, other than it triggering the editor history cleanup

org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)
at org.eclipse.swt.SWT.error(SWT.java:3547)
at org.eclipse.swt.SWT.error(SWT.java:3465)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:126)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3650)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3287)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2365)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2329)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2204)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:497)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:436)
at org.eclipse.equinox.launcher.Main.run(Main.java:1162)
at org.eclipse.equinox.launcher.Main.main(Main.java:1137)
Caused by: java.lang.NullPointerException
at org.eclipse.core.internal.filesystem.InternalFileSystemCore.getStore(InternalFileSystemCore.java:104)
at org.eclipse.core.filesystem.EFS.getStore(EFS.java:350)
at org.eclipse.ui.part.FileEditorInput.getPath(FileEditorInput.java:175)
at com.ibm.team.workitem.ide.ui.internal.editor.JavaFileEditorInput.equals(JavaFileEditorInput.java:161)
at org.eclipse.ui.internal.EditorHistoryItem.matches(EditorHistoryItem.java:114)
at org.eclipse.ui.internal.EditorHistory.remove(EditorHistory.java:118)
at org.eclipse.ui.internal.EditorHistory.add(EditorHistory.java:61)
at org.eclipse.ui.internal.EditorHistory.add(EditorHistory.java:51)
at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:677)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:634)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2659)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2592)
at org.eclipse.ui.internal.WorkbenchPage.access$12(WorkbenchPage.java:2584)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2569)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2564)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2548)
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2531)
at com.ibm.team.workitem.ide.ui.internal.editor.FileHelper.open(FileHelper.java:76)
at com.ibm.team.workitem.ide.ui.internal.editor.FileHelper$2.runInUIThread(FileHelper.java:155)
at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:94)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
... 23 more
Comment 1 Nick Edgar CLA 2007-06-28 14:23:26 EDT
My editor history has 2 .java files open from projects with a custom EFS, and 2 .class files from a referenced platform plug-in (the Workbench).
Comment 2 John Arthorne CLA 2007-06-28 17:17:12 EDT

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