This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 29863

Summary: [DnD] Informational AIOOBE and drop to bad position after DnD in Explorer
Product: platform Reporter: Marian Mirilovic <mmirilovic>
Component: ExplorerAssignee: Jiri Rechtacek <jrechtacek>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P4    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: ArrayIndexOutOfBoundsException: -1

Description Marian Mirilovic 2003-01-08 11:35:12 UTC
[nb_dev](20030108), [jdk1.4.2](b 11)

Steps to reproduce:
- run IDE
- expand examples/colorpicker and imageviewer
folders
- try drag ColorPreview image node 
- drop it between ImageFrame and ImageViewer 
-> ColorPreview is dropped before ImageFrame and
informational IAOOBE arise (attachment)
Comment 1 Marian Mirilovic 2003-01-08 11:36:23 UTC
Created attachment 8470 [details]
ArrayIndexOutOfBoundsException: -1
Comment 2 Jiri Rechtacek 2003-01-08 15:30:56 UTC
fixed, added check fromIndex before move, the index could be -1 when a
drag not found in target folder
Comment 3 Marian Mirilovic 2003-01-15 10:43:31 UTC
verified in [nb_dev](20030115),
but first attempt to drop node isn't successful, node is dropped at 0
position