Project: Eclipse_Platform_UI
Bug 199769 [Commands] HandlerService.createExecutionEvent always throws NullPointerException
Reported: 2007-08-13 11:29:07 | Status: verified fixed

Build ID: I20070621-1340 Steps To Reproduce: 1.call org.eclipse.ui.internal.handlers.HandlerService createExecutionEvent(final Command command, final Event event) with a valid event and command the code is: public final ExecutionEvent createExecutionEvent(final Command command, final Event event) { return new ExecutionEvent(command, null, event, getCurrentState()); } and so it calls: public ExecutionEvent(final Command command, final Map parameters, final Object trigger, final Object applicationContext) { if (parameters == null) { throw new NullPointerException( "An execution event must have a non-null map of parameters"); //$NON-NLS-1$ } parameters will always be null, so you always get a NPE More information:

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