This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 434637 - [DND] NullPointerException when dragging views in the perspective with RCP and eclipse target is Eclipse 4.4m7
Summary: [DND] NullPointerException when dragging views in the perspective with RCP an...
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.4   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 4.4 RC1   Edit
Assignee: Eric Moffatt CLA
QA Contact: Eric Moffatt CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-12 07:51 EDT by Knut Funkel CLA
Modified: 2014-05-16 10:19 EDT (History)
0 users

See Also:
pwebster: review+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Knut Funkel CLA 2014-05-12 07:51:27 EDT
The application is an eclipse 3.7 application running the eclipse 4 compability layer, and the target is Eclipse 4.4m7. The functionality is 4.4m6 works!

The perspective has tree views, added as standalone views.

When dragging any of the view, the exception below is generated.


13:42:38.401 [ERROR] 698  UI Thread ApplicationStatusLogAdapter - Unhandled event loop exception
java.lang.NullPointerException
	at org.eclipse.e4.ui.workbench.addons.dndaddon.SplitDropAgent2.isInCursorShell(SplitDropAgent2.java:100)
	at org.eclipse.e4.ui.workbench.addons.dndaddon.SplitDropAgent2.checkEdge(SplitDropAgent2.java:191)
	at org.eclipse.e4.ui.workbench.addons.dndaddon.SplitDropAgent2.checkAreaEdge(SplitDropAgent2.java:167)
	at org.eclipse.e4.ui.workbench.addons.dndaddon.SplitDropAgent2.getTargetElement(SplitDropAgent2.java:80)
	at org.eclipse.e4.ui.workbench.addons.dndaddon.SplitDropAgent2.canDrop(SplitDropAgent2.java:68)
	at org.eclipse.e4.ui.workbench.addons.dndaddon.DnDManager.getDropAgent(DnDManager.java:516)
	at org.eclipse.e4.ui.workbench.addons.dndaddon.DragAgent.dragStart(DragAgent.java:102)
	at org.eclipse.e4.ui.workbench.addons.dndaddon.PartDragAgent.dragStart(PartDragAgent.java:95)
	at org.eclipse.e4.ui.workbench.addons.dndaddon.DnDManager.startDrag(DnDManager.java:237)
	at org.eclipse.e4.ui.workbench.addons.dndaddon.DnDManager$1.dragDetected(DnDManager.java:87)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:127)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1152)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1033)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:635)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:578)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
	at com.sonymobile.cs.ma3.client.emma.EmmaApplication.start(EmmaApplication.java:322)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:379)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:233)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
Comment 1 Eric Moffatt CLA 2014-05-12 10:44:46 EDT
Knut, can you be more specific about the perspective contents (i.e. your IPageLayout implementation would be great) and what you were dragging and where when you got this exception ?
Comment 2 Eric Moffatt CLA 2014-05-12 10:49:37 EDT
Here's the Gerrit (just adds a null check):

  https://git.eclipse.org/r/26374
Comment 3 Eric Moffatt CLA 2014-05-12 11:33:29 EDT
I've pushed a new Gerrit (this time based off of master..;-).

  https://git.eclipse.org/r/26381
Comment 5 Eric Moffatt CLA 2014-05-16 10:19:46 EDT
Verified (visually) in 4.4.0.I20140515-1230.