Bug 171998 NPE in file store during ui tests in N20070129-0010 console log
Found this in the console log from that build. ui-test: eclipse-test: [echo] Running org.eclipse.pde.ui.tests.AllPDETests [java] !SESSION 2007-01-29 03:43:12.103 ----------------------------------------------- [java] eclipse.buildId=N20070129-0010 [java] java.version=1.5.0_06 [java] java.vendor=Sun Microsystems Inc. [java] BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US [java] Framework arguments: -application org.eclipse.test.uitestapplication formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,org.eclipse.pde.ui.tests.AllPDETests.xml -testPluginName org.eclipse.pde.ui.tests -className org.eclipse.pde.ui.tests.AllPDETests [java] Command-line arguments: -application org.eclipse.test.uitestapplication -dev bin -data /buildtest/N20070129-0010/eclipse-testing/test-eclipse/eclipse/pde_sniff_folder formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,org.eclipse.pde.ui.tests.AllPDETests.xml -testPluginName org.eclipse.pde.ui.tests -className org.eclipse.pde.ui.tests.AllPDETests -os linux -ws gtk -arch x86 -consolelog [java] !ENTRY org.eclipse.osgi 2 0 2007-01-29 03:43:16.380 [java] !MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists: [java] !SUBENTRY 1 org.eclipse.osgi 2 0 2007-01-29 03:43:16.381 [java] !MESSAGE Bundle update@plugins/org.eclipse.jdt.compiler.tool_1.0.0.N20070129-0010.jar [76] was not resolved. [java] !SUBENTRY 2 org.eclipse.jdt.compiler.tool 2 0 2007-01-29 03:43:16.381 [java] !MESSAGE Missing Constraint: Bundle-RequiredExecutionEnvironment: JavaSE-1.6 [java] !ENTRY org.eclipse.ui.workbench 4 2 2007-01-29 03:43:55.963 [java] !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench". [java] !STACK 0 [java] java.lang.NullPointerException [java] at org.eclipse.core.internal.filesystem.InternalFileSystemCore.getStore(InternalFileSystemCore.java:104) [java] at org.eclipse.core.filesystem.EFS.getStore(EFS.java:294) [java] at org.eclipse.ui.part.FileEditorInput.getPath(FileEditorInput.java:162) [java] at org.eclipse.ui.internal.EditorManager$7.run(EditorManager.java:1646) [java] at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) [java] at org.eclipse.ui.internal.EditorManager.saveEditorState(EditorManager.java:1586) [java] at org.eclipse.ui.internal.EditorManager.saveState(EditorManager.java:1500) [java] at org.eclipse.ui.internal.WorkbenchPage.saveState(WorkbenchPage.java:3081) [java] at org.eclipse.ui.internal.WorkbenchWindow.saveState(WorkbenchWindow.java:2447) [java] at org.eclipse.ui.internal.Workbench.saveState(Workbench.java:2126) [java] at org.eclipse.ui.internal.Workbench.recordWorkbenchState(Workbench.java:1800) [java] at org.eclipse.ui.internal.Workbench.access$11(Workbench.java:1797) [java] at org.eclipse.ui.internal.Workbench$14.run(Workbench.java:829) [java] at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) [java] at org.eclipse.ui.internal.Workbench.busyClose(Workbench.java:827) [java] at org.eclipse.ui.internal.Workbench.access$14(Workbench.java:784) [java] at org.eclipse.ui.internal.Workbench$18.run(Workbench.java:1002) [java] at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67) [java] at org.eclipse.ui.internal.Workbench.close(Workbench.java:1000) [java] at org.eclipse.ui.internal.Workbench.close(Workbench.java:972) [java] at org.eclipse.ui.internal.testing.WorkbenchTestable$2.run(WorkbenchTestable.java:121) [java] at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) [java] at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123) [java] at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3213) [java] at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2906) [java] at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2090) [java] at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2054) [java] at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:1960) [java] at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:454) [java] at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:228) [java] at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:449) [java] at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) [java] at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:101) [java] at org.eclipse.test.UITestApplication.runApplication(UITestApplication.java:138) [java] at org.eclipse.test.UITestApplication.run(UITestApplication.java:60) [java] at org.eclipse.test.UITestApplication.start(UITestApplication.java:210) [java] at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:146) [java] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106) [java] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76) [java] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354) [java] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:169) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:585) [java] at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:476) [java] at org.eclipse.equinox.launcher.Main.basicRun(Main.java:416) [java] at org.eclipse.equinox.launcher.Main.run(Main.java:1124) [java] at org.eclipse.equinox.launcher.Main.main(Main.java:1099)
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/part/FileEditorInput.java
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.content.IContentType;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.IFileEditorInput;
import org.eclipse.ui.IMemento;
import org.eclipse.ui.IPathEditorInput;
import org.eclipse.ui.IPersistableElement;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.ide.IDE;
import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin;
/**
 * Adapter for making a file resource a suitable input for an editor.
 * <p>
 * This class may be instantiated; it is not intended to be subclassed.
 * </p>
 */
public class FileEditorInput implements IFileEditorInput, IPathEditorInput,
		IPersistableElement {
	private IFile file;
	/**
	 * Creates an editor input based of the given file resource.
	 *
	 * @param file the file resource
	 */
	public FileEditorInput(IFile file) {
		if (file == null) {
			throw new IllegalArgumentException();
		}
		this.file = file;
	}