Project: JDT
Bug 97279 [refactoring] Generalize Type throws NPE
Reported: 2005-05-30 11:11:31 | Status: resolved fixed

3.1-RC1 test pass cannot execute Refactor>Generalize Type, get an NPE anytime. Example: JUnit in src, open Protectable.java, execute refactoring. java.lang.NullPointerException at org.eclipse.jdt.internal.corext.refactoring.structure.ChangeTypeRefactoring.determineSelection(ChangeTypeRefactoring.java:691) at org.eclipse.jdt.internal.corext.refactoring.structure.ChangeTypeRefactoring.checkSelection(ChangeTypeRefactoring.java:314) at org.eclipse.jdt.internal.corext.refactoring.structure.ChangeTypeRefactoring.checkInitialConditions(ChangeTypeRefactoring.java:269) at org.eclipse.ltk.core.refactoring.CheckConditionsOperation.run(CheckConditionsOperation.java:82) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1719) at org.eclipse.ltk.internal.ui.refactoring.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:86) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)

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