Project: JDT
Bug 44833 NPE in enable test of MoveStaticMembersRefactoring [refactoring]
Reported: 2003-10-14 13:05:42 | Status: verified fixed

!ENTRY org.eclipse.jface 4 2 Okt 14, 2003 18:57:17.787 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface". !STACK 0 java.lang.NullPointerException at org.eclipse.jdt.internal.corext.refactoring.structure.MoveStaticMembersRefactoring.isMoveable(MoveStaticMembersRefactoring.java:234) at org.eclipse.jdt.internal.corext.refactoring.structure.MoveStaticMembersRefactoring.areAllMoveable(MoveStaticMembersRefactoring.java:206) at org.eclipse.jdt.internal.corext.refactoring.structure.MoveStaticMembersRefactoring.isAvailable(MoveStaticMembersRefactoring.java:195) at org.eclipse.jdt.internal.ui.refactoring.actions.MoveStaticMembersAction.canEnable(MoveStaticMembersAction.java:137) at org.eclipse.jdt.internal.ui.refactoring.actions.MoveStaticMembersAction.selectionChanged(MoveStaticMembersAction.java:68) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged(SelectionDispatchAction.java:184) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged(SelectionDispatchAction.java:179) at org.eclipse.jdt.ui.actions.MoveAction.selectionChanged(MoveAction.java:105) at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:159) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1018) at org.eclipse.core.runtime.Platform.run(Platform.java:461) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:157) at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:1282) at org.eclipse.jface.viewers.StructuredViewer.setSelection(StructuredViewer.java:1012) at org.eclipse.jdt.internal.ui.browsing.JavaBrowsingPart.setSelection(JavaBrowsingPart.java:1160) at org.eclipse.jdt.internal.ui.browsing.JavaBrowsingPart.adjustInputAndSetSelection(JavaBrowsingPart.java:967) at org.eclipse.jdt.internal.ui.browsing.JavaBrowsingContentProvider$4.run(JavaBrowsingContentProvider.java:457) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:102) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:2150) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1867) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2347) at org.eclipse.ui.internal.Workbench.run(Workbench.java:2330) 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:299) at org.eclipse.core.launcher.Main.run(Main.java:765) at org.eclipse.core.launcher.Main.main(Main.java:599)

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