Project: Eclipse_Platform_UI
Bug 170194 [EditorMgmt] NPE on Ctrl+E when active part has no selection
Reported: 2007-01-11 05:37:06 | Status: resolved fixed

I20070109-1805 With a compare editor as active part, press Ctrl+E. java.lang.NullPointerException at org.eclipse.ui.internal.incubator.PropertiesProvider.getElements(PropertiesProvider.java:50) at org.eclipse.ui.internal.incubator.CtrlEAction$MyContentProvider.<init>(CtrlEAction.java:341) at org.eclipse.ui.internal.incubator.CtrlEAction$QuickAccessPopup.<init>(CtrlEAction.java:149) at org.eclipse.ui.internal.incubator.CtrlEAction.execute(CtrlEAction.java:89) at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:153) at org.eclipse.core.commands.Command.executeWithChecks(Command.java:461) at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:424) at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:160) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:463) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:780) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:827) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:561) at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:503) at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:121) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1007) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:926) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:951) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:936) at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:964) at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:960) at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1274) at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3472) at org.eclipse.swt.widgets.ToolBar.WM_CHAR(ToolBar.java:1043) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3372) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4147) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2186) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3077) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1942) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1906) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:424) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95) 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:585) at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethod(EclipseAppContainer.java:522) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:147) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:104) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:170) 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:585) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:473) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:417) at org.eclipse.equinox.launcher.Main.run(Main.java:1121) at org.eclipse.equinox.launcher.Main.main(Main.java:1096)

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/incubator/PropertiesProvider.java