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

Bug 301532

Summary: [DnD] ByteArrayTransfer NullPointer
Product: [RT] RAP Reporter: passport123
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 1.3   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description passport123 CLA 2010-02-02 08:43:51 EST
Build Identifier: rap-tooling-1.3.0-M4-20091214-1212.zip

ByteArrayTransfer copies the bytes into the non-existing "transferData.data" field instead of simply assigning to the field:
  System.arraycopy( data, 0, transferData.data, 0, data.length );

in addition the ListExample.StringArrayTransfer drag and drop example uses the data field directly although application code is not allowed to.
this workaround hides the above bug.

Reproducible: Always

Steps to Reproduce:
1. extend ByteArrayTransfer
2. use super.javaToNative
3.
Comment 1 Ivan Furnadjiev CLA 2010-02-02 08:55:43 EST
I think that this is a duplicate of bug 298447. Please reopen it if you don't think so.

*** This bug has been marked as a duplicate of bug 298447 ***