Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 352488

Summary: NPE when trying to drag Mapped Repo to different Contribution
Product: [Technology] CBI Reporter: Miles Daffin <miles.daffin>
Component: CBI p2 Repository AggregatorAssignee: Project Inbox <b3.aggregator-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: thomas
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Miles Daffin CLA 2011-07-19 12:34:06 EDT
Using b3 Aggregator Editor (Incubation)	0.2.0.v20110718-2116	org.eclipse.b3.aggregator.editor.feature.feature.group

Get the following error in the log when I try to drag a mapped repo from contribution A to Contribution B.

----
java.lang.NullPointerException
	at org.eclipse.b3.aggregator.impl.InstallableUnitRequestImpl.resolveAvailableVersions(InstallableUnitRequestImpl.java:726)
	at org.eclipse.b3.aggregator.impl.InstallableUnitRequestImpl.getAvailableVersions(InstallableUnitRequestImpl.java:537)
	at org.eclipse.b3.aggregator.impl.InstallableUnitRequestImpl.eGet(InstallableUnitRequestImpl.java:366)
	at org.eclipse.b3.aggregator.impl.MappedUnitImpl.eGet(MappedUnitImpl.java:223)
	at org.eclipse.b3.aggregator.impl.FeatureImpl.eGet(FeatureImpl.java:64)
	at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1021)
	at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1013)
	at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eGet(BasicEObjectImpl.java:1008)
	at org.eclipse.emf.edit.command.InitializeCopyCommand.copyReferences(InitializeCopyCommand.java:229)
	at org.eclipse.emf.edit.command.InitializeCopyCommand.doExecute(InitializeCopyCommand.java:121)
	at org.eclipse.emf.edit.command.AbstractOverrideableCommand.execute(AbstractOverrideableCommand.java:131)
	at org.eclipse.emf.common.command.CompoundCommand.execute(CompoundCommand.java:267)
	at org.eclipse.emf.common.command.StrictCompoundCommand.execute(StrictCompoundCommand.java:303)
	at org.eclipse.emf.edit.command.CopyCommand.execute(CopyCommand.java:216)
	at org.eclipse.emf.edit.command.DragAndDropCommand.prepareDropCopyOn(DragAndDropCommand.java:767)
	at org.eclipse.emf.edit.command.DragAndDropCommand.prepareDropOn(DragAndDropCommand.java:695)
	at org.eclipse.emf.edit.command.DragAndDropCommand.prepare(DragAndDropCommand.java:307)
	at org.eclipse.emf.common.command.AbstractCommand.canExecute(AbstractCommand.java:114)
	at org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter.helper(EditingDomainViewerDropAdapter.java:324)
	at org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter.dragOver(EditingDomainViewerDropAdapter.java:190)
	at org.eclipse.swt.dnd.DNDListener.handleEvent(DNDListener.java:80)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
	at org.eclipse.swt.dnd.DropTarget.DragOver(DropTarget.java:366)
	at org.eclipse.swt.dnd.DropTarget$3.method4(DropTarget.java:250)
	at org.eclipse.swt.internal.ole.win32.COMObject.callback4(COMObject.java:101)
	at org.eclipse.swt.internal.ole.win32.COM.DoDragDrop(Native Method)
	at org.eclipse.swt.dnd.DragSource.drag(DragSource.java:363)
	at org.eclipse.swt.dnd.DragSource.access$0(DragSource.java:289)
	at org.eclipse.swt.dnd.DragSource$1.handleEvent(DragSource.java:172)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	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:344)
	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:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Comment 1 Miles Daffin CLA 2011-07-19 12:36:47 EDT
Also get this NPE when I try to copy a mapped repo (Ctrl + c).
Comment 2 Thomas Hallgren CLA 2011-07-20 02:37:56 EDT
Fixed in rev. 1537.
Comment 3 Miles Daffin CLA 2011-07-25 07:09:50 EDT
Cannot reproduce on new build. Closing.
Comment 4 David Williams CLA 2016-09-16 15:52:14 EDT
[Bookkeeping change only. Moving bugs to the new "home" of aggregator, CBI.
Made no changes to assignee's for closed bugs, even though some were old inbox.]