Project: Eclipse_Platform_UI
Bug 12047 NPE reordering editors.
Reported: 2002-03-21 12:08:00 | Status: resolved fixed

Got the following NPE using the JavaBrowing perspective but could not reproduce the problem. org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException) at org.eclipse.swt.SWT.error(SWT.java:1887) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages (Synchronizer.java:96) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1397) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1211) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:722) at org.eclipse.ui.internal.Workbench.run(Workbench.java:705) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:14) Log: Thu Mar 21 12:05:00 EST 2002 1 org.eclipse.core.resources 4 *** Stack trace of contained exception *** Log: Thu Mar 21 12:05:00 EST 2002 4 org.eclipse.ui 0 java.lang.NullPointerException java.lang.NullPointerException at org.eclipse.ui.internal.EditorWorkbook.setVisibleEditor (EditorWorkbook.java:759) at org.eclipse.ui.internal.EditorWorkbook.reorderTab (EditorWorkbook.java:688) at org.eclipse.ui.internal.EditorWorkbook.reorderTab (EditorWorkbook.java:652) at org.eclipse.ui.internal.EditorPresentation.moveEditor (EditorPresentation.java:147) at org.eclipse.ui.internal.EditorManager.reuseInternalEditor (EditorManager.java:511) at org.eclipse.ui.internal.EditorManager.openEditor (EditorManager.java:363) at org.eclipse.ui.internal.EditorManager.openEditor (EditorManager.java:278) at org.eclipse.ui.internal.WorkbenchPage.openEditor (WorkbenchPage.java:1295) at org.eclipse.ui.internal.WorkbenchPage.openEditor (WorkbenchPage.java:1191) at org.eclipse.jdt.internal.ui.wizards.NewElementWizard$1.run (NewElementWizard.java:49) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:29) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages (Synchronizer.java:93) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:1397) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1211) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:722) at org.eclipse.ui.internal.Workbench.run(Workbench.java:705) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:777) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:319) at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:14)

Files changed in fix:
bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/EditorWorkbook.java