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

Bug 336714

Summary: ArrayIndexOutOfBoundsException on Drag&Drop
Product: z_Archived Reporter: mve
Component: NebulaAssignee: Laurent CARON <laurent.caron>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: laurent.caron, mve
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
See Also: https://github.com/eclipse/nebula/pull/116
Whiteboard:
Attachments:
Description Flags
Stack of the error none

Description mve CLA 2011-02-09 08:58:47 EST
Created attachment 188588 [details]
Stack of the error

When you display a Gallery, if you start a D&D from one or several items it works, but if you start it from a blank part an ArrayIndexOutOfBoundsException is thrown. A simple correction seems to work :

Class org.eclipse.nebula.widgets.gallery.GalleryDragSourceEffect
Method dragStart()

[...]
if (selection != null && selection.length > 0) {
[...]
Comment 1 mve CLA 2011-02-09 09:05:45 EST
The bug occured on Windows XP with v0.5.2 .
Comment 2 Laurent CARON CLA 2019-09-14 09:41:03 EDT
Bug fixed for release V2.3.0