summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop
diff options
context:
space:
mode:
authorLakshmi Shanmugam <lshanmugam>2011-05-16 17:28:01 +0000
committerLakshmi Shanmugam <lshanmugam>2011-05-16 17:28:01 +0000
commit160dcd4ab5aa61eb20d880b87d7912cdc2fe9cef (patch)
treee49605e94b452e37e170cd7b5c603dbc4bfcdf8c /bundles/org.eclipse.swt/Eclipse SWT Drag and Drop
parent84c8b40033dff2eafe1727c6feb80643180fe78a (diff)
downloadeclipse.platform.swt-160dcd4ab5aa61eb20d880b87d7912cdc2fe9cef.tar.gz
eclipse.platform.swt-160dcd4ab5aa61eb20d880b87d7912cdc2fe9cef.tar.xz
eclipse.platform.swt-160dcd4ab5aa61eb20d880b87d7912cdc2fe9cef.zip
Bug 341895-DND actions in AbstractTreeViewer lead to NPE and application freeze
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Drag and Drop')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/DragSource.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/DragSource.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/DragSource.java
index 7aa900bde6..ea26af3abe 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/DragSource.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/DragSource.java
@@ -351,6 +351,7 @@ void drag(Event dragEvent) {
}
int dragSendDataProc(int theType, int dragSendRefCon, int theItemRef, int theDrag) {
+ control.setData(DRAG_STARTED, null);
if (theType == 0) return OS.badDragFlavorErr;
TransferData transferData = new TransferData();
transferData.type = theType;