Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356502 - NPE in DND
Summary: NPE in DND
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.1   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-01 13:53 EDT by Brian de Alwis CLA
Modified: 2011-12-12 11:39 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.