Project: Eclipse_Platform_UI
Bug 308584 [Compatibility] DND throws InjectionException
Reported: 2010-04-08 20:29:03 | Status: resolved fixed

Only happens on the first call. Caused by an NPE in the static createCompatibilitySelection(Object) method in SelectionService. Injection failed for the object "org.eclipse.e4.workbench.ui.internal.SelectionServiceImpl@5fea3". Unable to execute "org.eclipse.e4.core.internal.di.MethodRequestor@968df8" org.eclipse.e4.core.di.InjectionException at org.eclipse.e4.core.internal.di.InjectorImpl.logError(InjectorImpl.java:849) at org.eclipse.e4.core.internal.di.InjectorImpl.update(InjectorImpl.java:362) at org.eclipse.e4.core.internal.contexts.ContextObjectSupplier$ContextInjectionListener.notify(ContextObjectSupplier.java:66) at org.eclipse.e4.core.internal.contexts.EclipseContext$TrackableComputationExt.notify(EclipseContext.java:169) at org.eclipse.e4.core.internal.contexts.EclipseContext.processScheduled(EclipseContext.java:483) at org.eclipse.e4.core.internal.contexts.EclipseContext.set(EclipseContext.java:505) at org.eclipse.e4.workbench.ui.internal.PartServiceImpl.activate(PartServiceImpl.java:326) at org.eclipse.e4.ui.workbench.swt.internal.AbstractPartRenderer.activate(AbstractPartRenderer.java:136) at org.eclipse.e4.workbench.ui.renderers.swt.StackRenderer$ActivationJob.run(StackRenderer.java:88) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4014) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3633) at org.eclipse.e4.ui.workbench.swt.internal.PartRenderingEngine$5.run(PartRenderingEngine.java:553)

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/e4/compatibility/SelectionService.java