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

Bug 356502

Summary: NPE in DND
Product: [Eclipse Project] Platform Reporter: Brian de Alwis <bsd>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: emoffatt, remy.suen
Version: 4.1   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Brian de Alwis CLA 2011-09-01 13:53:36 EDT
Version: 4.1.0
Build id: M20110826-1525

I had the following NPE when doing some DND to rearrange the Debug perspective: I guess the dragAgent may be null at that point.

!ENTRY org.eclipse.e4.ui.workbench 4 0 2011-09-01 13:31:46.947
!MESSAGE Internal Error
!STACK 0
java.lang.NullPointerException
        at org.eclipse.e4.ui.workbench.addons.dndaddon.DnDManager.finishDrag(DnD
Manager.java:226)
        at org.eclipse.e4.ui.workbench.addons.dndaddon.DnDManager.startDrag(DnDM
anager.java:200)
        at org.eclipse.e4.ui.workbench.addons.dndaddon.DnDManager$1$1.dragDetect
ed(DnDManager.java:109)
        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:4128)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480)
Comment 1 Brian de Alwis CLA 2011-12-12 11:39:32 EST
I'm now able to do this without an NPE.