Project: JDT
Bug 5035 NPE in Deleterefactoring
Reported: 2001-10-17 04:45:38 | Status: resolved fixed

204: In the package viewer: I got jdt.core from the zrh repository (v_0.135), selected all files, delete 4 org.eclipse.ui 0 java.lang.NullPointerException java.lang.NullPointerException at org.eclipse.jdt.internal.core.refactoring.reorg.DeleteRefactoring.getPath (DeleteRefactoring.java:170) at org.eclipse.jdt.internal.core.refactoring.reorg.DeleteRefactoring.access$0 (DeleteRefactoring.java:168) at org.eclipse.jdt.internal.core.refactoring.reorg.DeleteRefactoring$1.getPathLengt h(DeleteRefactoring.java:185) at org.eclipse.jdt.internal.core.refactoring.reorg.DeleteRefactoring$1.compare (DeleteRefactoring.java:181) at java.util.Arrays.mergeSort(Arrays.java(Compiled Code)) at java.util.Arrays.mergeSort(Arrays.java(Compiled Code)) at java.util.Arrays.mergeSort(Arrays.java(Compiled Code)) at java.util.Arrays.sort(Arrays.java:1129) at java.util.Collections.sort(Collections.java:122) at org.eclipse.jdt.internal.core.refactoring.reorg.DeleteRefactoring.prepareElement List(DeleteRefactoring.java:133) at org.eclipse.jdt.internal.core.refactoring.reorg.DeleteRefactoring.createChange (DeleteRefactoring.java:117) at org.eclipse.jdt.internal.ui.refactoring.CreateChangeOperation.run (CreateChangeOperation.java:102) at org.eclipse.jdt.internal.ui.refactoring.PerformChangeOperation.run (PerformChangeOperation.java:118) at org.eclipse.jface.operation.ModalContext.runInCurrentThread (ModalContext.java:296) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:249) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run (ProgressMonitorDialog.java:335) at org.eclipse.jdt.internal.ui.reorg.ReorgAction.perform (ReorgAction.java:52) at org.eclipse.jdt.internal.ui.reorg.DeleteAction.run (DeleteAction.java:54) at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart.handleKeyPressed (PackageExplorerPart.java:595) at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$5.keyPressed (PackageExplorerPart.java:312) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.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:658) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:820) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285) 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:433) at org.eclipse.core.launcher.UIMain.main(UIMain.java:52)

Files changed in fix:
org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/core/refactoring/reorg/DeleteRefactoring.java