Project: JDT
Bug 43487 Exception on 'Preview' of inline method [refactoring]
Reported: 2003-09-23 06:40:30 | Status: resolved fixed

20030923 smoke 1. Laod the Junit sources in a project 2. Select SuiteTest.testInheritedTests and do a 'Inline...' Nothing happens, Exception in the log java.lang.NullPointerException at org.eclipse.jdt.internal.ui.refactoring.ChangeElementContentProvider.getChangeElement(ChangeElementContentProvider.java:165) at org.eclipse.jdt.internal.ui.refactoring.ChangeElementContentProvider.getChangeElement(ChangeElementContentProvider.java:171) at org.eclipse.jdt.internal.ui.refactoring.ChangeElementContentProvider.getChangeElement(ChangeElementContentProvider.java:171) at org.eclipse.jdt.internal.ui.refactoring.ChangeElementContentProvider.getChangeElement(ChangeElementContentProvider.java:171) at org.eclipse.jdt.internal.ui.refactoring.ChangeElementContentProvider.getChangeElement(ChangeElementContentProvider.java:171) at org.eclipse.jdt.internal.ui.refactoring.ChangeElementContentProvider.createChildren(ChangeElementContentProvider.java:135) at org.eclipse.jdt.internal.ui.refactoring.ChangeElementContentProvider.getChildren(ChangeElementContentProvider.java:76) at org.eclipse.jdt.internal.ui.refactoring.ChangeElementContentProvider.hasChildren(ChangeElementContentProvider.java:92) at org.eclipse.jface.viewers.AbstractTreeViewer.isExpandable(AbstractTreeViewer.java:1081) at org.eclipse.jface.viewers.AbstractTreeViewer.updatePlus(AbstractTreeViewer.java:1497) at org.eclipse.jface.viewers.AbstractTreeViewer.createTreeItem(AbstractTreeViewer.java:339) at org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractTreeViewer.java:321) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:84) at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:307) at org.eclipse.jface.viewers.AbstractTreeViewer$5.run(AbstractTreeViewer.java:753) at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:796) at org.eclipse.jface.viewers.CheckboxTreeViewer.preservingSelection(CheckboxTreeViewer.java:341) at org.eclipse.jface.viewers.AbstractTreeViewer.inputChanged(AbstractTreeViewer.java:744) at org.eclipse.jdt.internal.ui.refactoring.ChangeElementTreeViewer.inputChanged(ChangeElementTreeViewer.java:50) at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:238) at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:983) at org.eclipse.jdt.internal.ui.refactoring.PreviewWizardPage.setTreeViewerInput(PreviewWizardPage.java:308) at org.eclipse.jdt.internal.ui.refactoring.PreviewWizardPage.createStandardPreviewPage(PreviewWizardPage.java:233) at org.eclipse.jdt.internal.ui.refactoring.PreviewWizardPage.createControl(PreviewWizardPage.java:205) at org.eclipse.jdt.internal.ui.refactoring.RefactoringWizardDialog2.previewPressed(RefactoringWizardDialog2.java:431) at org.eclipse.jdt.internal.ui.refactoring.RefactoringWizardDialog2.access$3(RefactoringWizardDialog2.java:416) at org.eclipse.jdt.internal.ui.refactoring.RefactoringWizardDialog2$1.widgetSelected(RefactoringWizardDialog2.java:547) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:847) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2187) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1877) at org.eclipse.jface.window.Window.runEventLoop(Window.java:583) at org.eclipse.jface.window.Window.open(Window.java:563) at org.eclipse.jdt.internal.ui.refactoring.actions.RefactoringStarter.activate(RefactoringStarter.java:56) at org.eclipse.jdt.internal.ui.refactoring.actions.InlineMethodAction.activate(InlineMethodAction.java:128) at org.eclipse.jdt.internal.ui.refactoring.actions.InlineMethodAction.run(InlineMethodAction.java:121) at org.eclipse.jdt.internal.ui.refactoring.actions.InlineMethodAction.run(InlineMethodAction.java:82) at org.eclipse.jdt.ui.actions.InlineAction.tryInlineMethod(InlineAction.java:132) at org.eclipse.jdt.ui.actions.InlineAction.run(InlineAction.java:109) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:196) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:172) at org.eclipse.jface.action.Action.runWithEvent(Action.java:842) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:529) at org.eclipse.jface.action.ActionContributionItem.access$4(ActionContributionItem.java:482) at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:454) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:847) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2187) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1877) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2037) at org.eclipse.ui.internal.Workbench.run(Workbench.java:2020) at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461) 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:295) at org.eclipse.core.launcher.Main.run(Main.java:751) at org.eclipse.core.launcher.Main.main(Main.java:587)

Files changed in fix:
org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/ChangeElementContentProvider.java