Project: JDT
Bug 5886 refactoring wizard: NPE
Reported: 2001-11-14 09:01:44 | Status: resolved fixed

1. run self encapsulate field 2. press 'next' on the first page - you get the preview' 3. press 'back' on the preview page java.lang.NullPointerException at org.eclipse.jdt.internal.ui.refactoring.ChangeElementTreeViewer.initializeChildr en(ChangeElementTreeViewer.java:61) at org.eclipse.jdt.internal.ui.refactoring.ChangeElementTreeViewer.inputChanged (ChangeElementTreeViewer.java:57) at org.eclipse.jface.viewers.ContentViewer.setInput (ContentViewer.java:234) at org.eclipse.jface.viewers.StructuredViewer.setInput (StructuredViewer.java:659) at org.eclipse.jdt.internal.ui.refactoring.NewPreviewWizardPage.setChange (NewPreviewWizardPage.java:132) at org.eclipse.jdt.internal.ui.refactoring.RefactoringWizard.setChange (RefactoringWizard.java:110) at org.eclipse.jdt.internal.ui.refactoring.UserInputWizardPage.setVisible (UserInputWizardPage.java:94) at org.eclipse.jdt.internal.ui.refactoring.TextInputWizardPage.setVisible (TextInputWizardPage.java:153) at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:882) at org.eclipse.jface.wizard.WizardDialog.backPressed (WizardDialog.java:291) at org.eclipse.jface.wizard.WizardDialog.buttonPressed (WizardDialog.java:303) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:211) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java (Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:635) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1365) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1167) at org.eclipse.jface.window.Window.runEventLoop(Window.java:536) at org.eclipse.jface.window.Window.open(Window.java:523) at org.eclipse.jdt.internal.ui.refactoring.actions.RefactoringAction.activateRefact oringWizard(RefactoringAction.java:65) at org.eclipse.jdt.internal.ui.reorg.RefactoringSupportFactory$RenameSupport.rename (RefactoringSupportFactory.java:57) at org.eclipse.jdt.internal.ui.reorg.RenameAction.run (RenameAction.java:27) at org.eclipse.jface.action.Action.runWithEvent(Action.java:453) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java (Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:635) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1365) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1167) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:729) at org.eclipse.ui.internal.Workbench.run(Workbench.java:712) 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:502) at org.eclipse.core.launcher.UIMain.main(UIMain.java:52) at ZRHMain.main(ZRHMain.java:14) Log: Wed Nov 14 15:07:59 GMT+01:00 2001

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