Bug 264194 [KeyBindings] NullPointerException (Cannot set a null prefix table) during shutdown
Build ID: I20090129-1800 Steps To Reproduce: When the application is shut down there is NPE logged in the Error Log. Stack trace: java.lang.NullPointerException: Cannot set a null prefix table at org.eclipse.jface.bindings.CachedBindingSet.setPrefixTable(CachedBindingSet.java:346) at org.eclipse.jface.bindings.BindingManager.recomputeBindings(BindingManager.java:1765) at org.eclipse.jface.bindings.BindingManager.contextManagerChanged(BindingManager.java:689) at org.eclipse.core.commands.contexts.ContextManager.fireContextManagerChanged(ContextManager.java:165) at org.eclipse.core.commands.contexts.ContextManager.removeActiveContext(ContextManager.java:245) at org.eclipse.ui.internal.contexts.ContextAuthority.updateContext(ContextAuthority.java:758) at org.eclipse.ui.internal.contexts.ContextAuthority.deactivateContext(ContextAuthority.java:353) at org.eclipse.ui.internal.contexts.ContextService.deactivateContext(ContextService.java:148) at org.eclipse.ui.internal.contexts.ContextService.deactivateContexts(ContextService.java:162) at org.eclipse.ui.internal.contexts.SlaveContextService.dispose(SlaveContextService.java:246) at org.eclipse.ui.internal.services.ServiceLocator.dispose(ServiceLocator.java:142) at org.eclipse.ui.internal.WorkbenchWindow.hardClose(WorkbenchWindow.java:1717) at org.eclipse.ui.internal.WorkbenchWindow.busyClose(WorkbenchWindow.java:723) at org.eclipse.ui.internal.WorkbenchWindow.access$0(WorkbenchWindow.java:699) at org.eclipse.ui.internal.WorkbenchWindow$5.run(WorkbenchWindow.java:815) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindow.java:813) at org.eclipse.jface.window.WindowManager.close(WindowManager.java:109) at org.eclipse.ui.internal.Workbench$16.run(Workbench.java:918) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.ui.internal.Workbench.busyClose(Workbench.java:915) at org.eclipse.ui.internal.Workbench.access$15(Workbench.java:844) at org.eclipse.ui.internal.Workbench$23.run(Workbench.java:1088) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.ui.internal.Workbench.close(Workbench.java:1086) at org.eclipse.ui.internal.Workbench.close(Workbench.java:1058) at org.eclipse.ui.internal.WorkbenchWindow.busyClose(WorkbenchWindow.java:720) at org.eclipse.ui.internal.WorkbenchWindow.access$0(WorkbenchWindow.java:699) at org.eclipse.ui.internal.WorkbenchWindow$5.run(WorkbenchWindow.java:815) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindow.java:813) at org.eclipse.jface.window.Window.handleShellCloseEvent(Window.java:741) at org.eclipse.jface.window.Window$3.shellClosed(Window.java:687) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:92) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012) at org.eclipse.swt.widgets.Decorations.closeWidget(Decorations.java:307) at org.eclipse.swt.widgets.Decorations.WM_CLOSE(Decorations.java:1644) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3914) at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:342) at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1577) at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1937) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4584) at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method) at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2388) at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:477) at org.eclipse.swt.widgets.Control.windowProc(Control.java:4002) at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:342) at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1577) at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1937) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4584) at org.eclipse.swt.internal.win32.OS.DefWindowProcW(Native Method) at org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2388) at org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:477) at org.eclipse.swt.widgets.Control.windowProc(Control.java:4002) at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:342) at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1577) at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1937) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4584) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2393) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3468) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2388) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2352) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2204) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:499) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:333) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:492) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:59) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:39) at java.lang.reflect.Method.invoke(Method.java:612) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:556) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:511) at org.eclipse.equinox.launcher.Main.run(Main.java:1270) at org.eclipse.equinox.launcher.Main.main(Main.java:1246) More information: There is a number of other errors caused by broken Project Explorer content providers (please see Bugzilla #252293). It could be that this exception will go away when these content providers are fixed.
bundles/org.eclipse.jface/src/org/eclipse/jface/bindings/CachedBindingSet.java
}
	/**
	 * Returns a map of conflicts for this set of contexts.
	 * 
	 * @return A map of trigger to a collection of Bindings. May be
	 *         <code>null</code>.
	 * @since 3.3
	 */
	final Map getConflictsByTrigger() {
		return conflictsByTrigger;
	}
	/**
	 * Returns the map of prefixes to a map of trigger sequence to command
	 * identifiers.
	 * 
	 * @return A map of prefixes (<code>TriggerSequence</code>) to a map of
	 *         available completions (possibly <code>null</code>, which means
	 *         there is an exact match). The available completions is a map of
	 *         trigger (<code>TriggerSequence</code>) to command identifier (<code>String</code>).
	 *         This value may be <code>null</code> if it has not yet been
	 *         initialized.
	 */
	final Map getPrefixTable() {
		return prefixTable;
	}
	/**
	 * Returns the map of triggers indexed by command identifiers.
	 * 
	 * @return A map of command identifiers (<code>String</code>) to
	 *         triggers (<code>Collection</code> of