summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon
diff options
context:
space:
mode:
authorVeronika Irvine <veronika>2003-02-26 19:38:40 +0000
committerVeronika Irvine <veronika>2003-02-26 19:38:40 +0000
commite1128c0d5e9e7b8b4e65a3a4aaf19424d2b37dc9 (patch)
treecea9f544b7647c4b8b1bd9fbd83e376e59f7a6e9 /bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon
parent1f20a1d264bba4b262d3deffa1fafad6f8f70360 (diff)
downloadeclipse.platform.swt-e1128c0d5e9e7b8b4e65a3a4aaf19424d2b37dc9.tar.gz
eclipse.platform.swt-e1128c0d5e9e7b8b4e65a3a4aaf19424d2b37dc9.tar.xz
eclipse.platform.swt-e1128c0d5e9e7b8b4e65a3a4aaf19424d2b37dc9.zip
*** empty log message ***
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/ByteArrayTransfer.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/ByteArrayTransfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/ByteArrayTransfer.java
index 929a52faf3..9ef271c1e0 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/ByteArrayTransfer.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/ByteArrayTransfer.java
@@ -124,6 +124,7 @@ public TransferData[] getSupportedTypes(){
return data;
}
public boolean isSupportedType(TransferData transferData){
+ if (transferData == null) return false;
int[] types = getTypeIds();
for (int i = 0; i < types.length; i++) {
if (transferData.type == types[i]) return true;