Project: JDT
Bug 7046 NPE trying to show context menu on method in Outliner
Reported: 2001-12-18 10:49:26 | Status: verified fixed

Under 20011211++, try to show context menu on method in outliner for java.util.Date#toString. Note error dialog, and following walkback in log: Log: Tue Dec 18 09:54:13 CST 2001 4 org.eclipse.ui 0 java.lang.NullPointerException java.lang.NullPointerException at org.eclipse.jdt.internal.corext.refactoring.structure.ReorderParametersRefactori ng.createPermutation(ReorderParametersRefactoring.java:207) at org.eclipse.jdt.internal.corext.refactoring.structure.ReorderParametersRefactori ng.setNewParameterOrder(ReorderParametersRefactoring.java:78) at org.eclipse.jdt.internal.corext.refactoring.structure.ReorderParametersRefactori ng.<init>(ReorderParametersRefactoring.java:56) at org.eclipse.jdt.internal.ui.refactoring.actions.RefactoringGroup$2.createNewRefa ctoringInstance(RefactoringGroup.java:93) at org.eclipse.jdt.internal.ui.refactoring.actions.OpenRefactoringWizardAction.shou ldAcceptElement(OpenRefactoringWizardAction.java:87) at org.eclipse.jdt.internal.ui.refactoring.actions.OpenRefactoringWizardAction.canO perateOn(OpenRefactoringWizardAction.java:40) at org.eclipse.jdt.internal.ui.refactoring.actions.RefactoringAction.update (RefactoringAction.java:100) at org.eclipse.jdt.internal.ui.refactoring.actions.RefactoringGroup.fill (RefactoringGroup.java:47) at org.eclipse.jdt.internal.ui.actions.ContextMenuGroup.add (ContextMenuGroup.java:25) at org.eclipse.jdt.internal.ui.javaeditor.JavaOutlinePage.addRefactoring (JavaOutlinePage.java:911) at org.eclipse.jdt.internal.ui.javaeditor.JavaOutlinePage.contextMenuAboutToShow (JavaOutlinePage.java:946) at org.eclipse.jdt.internal.ui.javaeditor.JavaOutlinePage$2.menuAboutToShow (JavaOutlinePage.java:805) at org.eclipse.jface.action.MenuManager.fireAboutToShow (MenuManager.java:220) at org.eclipse.jface.action.MenuManager.handleAboutToShow (MenuManager.java:253) at org.eclipse.jface.action.MenuManager.access$0(MenuManager.java:250) at org.eclipse.jface.action.MenuManager$1.menuShown (MenuManager.java:280) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:112) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:54) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:839) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Control.WM_INITMENUPOPUP(Control.java:2915) at org.eclipse.swt.widgets.Control.windowProc(Control.java:2609) at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1082) at org.eclipse.swt.widgets.Display.windowProc(Display.java:1712) at org.eclipse.swt.internal.win32.OS.TrackPopupMenu(Native Method) at org.eclipse.swt.widgets.Menu.setVisible(Menu.java:777) at org.eclipse.swt.widgets.Control.WM_CONTEXTMENU(Control.java:2740) at org.eclipse.swt.widgets.Control.windowProc(Control.java:2592) at org.eclipse.swt.widgets.Display.windowProc(Display.java:1712) at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method) at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:1089) at org.eclipse.swt.widgets.Tree.callWindowProc(Tree.java:144) at org.eclipse.swt.widgets.Control.WM_RBUTTONUP(Control.java:3590) at org.eclipse.swt.widgets.Control.windowProc(Control.java:2640) at org.eclipse.swt.widgets.Display.windowProc(Display.java:1712) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1156) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1168) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:775) at org.eclipse.ui.internal.Workbench.run(Workbench.java:758) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:820) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285) at SlimLauncher.main(SlimLauncher.java:14)

Files changed in fix:
org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ReorderParametersRefactoring.java