Project: JDT
Bug 9495 NPE Deleting project that has a launcher
Reported: 2002-02-12 16:27:08 | Status: resolved fixed

If you delete a project that you have launched from before you get a NullPointerException STEPS 1) Load a test suite (I used the org.eclipse.ui.tests) 2) Run them. 3) Delete the project from the ResourceNavigator. 1 org.eclipse.core.resources 4 *** Stack trace of contained exception *** Log: Tue Feb 12 16:25:54 EST 2002 4 org.eclipse.ui 0 java.lang.NullPointerException java.lang.NullPointerException at org.eclipse.jdt.internal.junit.ui.JUnitBaseLauncherDelegate.getLaunchObject (JUnitBaseLauncherDelegate.java:175) at org.eclipse.debug.internal.ui.LaunchHistoryElement.getLaunchElement (LaunchHistoryElement.java:111) at org.eclipse.debug.internal.ui.DebugUIPlugin.removeDeletedHistories (DebugUIPlugin.java:672) at org.eclipse.debug.internal.ui.DebugUIPlugin$5.run (DebugUIPlugin.java:657) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java(Compiled Code)) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages (Synchronizer.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java (Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled Code)) at org.eclipse.jface.operation.ModalContext$ModalContextThread.block (ModalContext.java(Compiled Code)) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:258) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run (ProgressMonitorDialog.java:335) at org.eclipse.ui.actions.DeleteResourceAction.run (DeleteResourceAction.java:353) at org.eclipse.jface.action.Action.runWithEvent(Action.java:452) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java (Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java (Compiled Code)) at org.eclipse.ui.internal.Workbench.run(Workbench.java:810) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:781) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:323) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:151) at org.eclipse.core.launcher.Main.run(Main.java:502) at org.eclipse.core.launcher.Main.main(Main.java:362)

Files changed in fix:
org.eclipse.jdt.junit/Eclipse JUnit/org/eclipse/jdt/internal/junit/oldlauncher/JUnitBaseLauncherDelegate.java