Project: Eclipse_Platform_UI
Bug 11304 NPE deleting project
Reported: 2002-03-13 16:49:10 | Status: resolved fixed

1. Select a project in the packages view and hit the delete key. 2. In the confirmation dialog, choose to also delete contents. 3. In the deletion progress dialog, click cancel. 4. Select the project again and hit the delete key. The following NPE occurs. java.lang.NullPointerException at org.eclipse.ui.actions.DeleteResourceAction$DeleteProjectDialog.createCustomArea(DeleteResourceAction.java:79) at org.eclipse.jface.dialogs.MessageDialog.createDialogArea(MessageDialog.java:201) at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java:465) at org.eclipse.jface.window.Window.create(Window.java:263) at org.eclipse.jface.window.Window.open(Window.java:512) at org.eclipse.ui.actions.DeleteResourceAction.confirmDeleteProjects(DeleteResourceAction.java:244) at org.eclipse.ui.actions.DeleteResourceAction.confirmDelete(DeleteResourceAction.java:205) at org.eclipse.ui.actions.DeleteResourceAction.run(DeleteResourceAction.java:341) at org.eclipse.jdt.internal.ui.reorg.JdtDeleteResourceAction.deleteProjects(JdtDeleteResourceAction.java:69) at org.eclipse.jdt.internal.ui.reorg.JdtDeleteResourceAction.run(JdtDeleteResourceAction.java:43) at org.eclipse.jdt.internal.ui.reorg.DeleteAction.run(DeleteAction.java:46) at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart.doKeyPressed(PackageExplorerPart.java:1001) at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart.access$2(PackageExplorerPart.java:982) at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$5.keyReleased(PackageExplorerPart.java:977) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:120) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:74) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:488) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1557) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1399) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:692) at org.eclipse.ui.internal.Workbench.run(Workbench.java:675) at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) 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:324) 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:
bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/actions/DeleteResourceAction.java