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

Bug 320838

Summary: Virtual Table: SWT.SetData event does not contain valid TreeItems (index == -1)
Product: [Eclipse Project] Platform Reporter: bandwerker
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: ericwill, mark.k.mclaren, pinnamur
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Testcase that demonstrates the problem none

Description bandwerker CLA 2010-07-25 06:38:49 EDT
Created attachment 175172 [details]
Testcase that demonstrates the problem

Snippet 144 shows how to use a virtual table. The snippet does not use columns, so I added some columns. Now, if that table is reloaded, SWT.SetData events are fired. In these events, my Listener finds 
event.index == -1 and
table.indexOf(item) == -1

This seems like a bug to me.


Please see the attached file for an example. The example contains a table that is populated with 200 items. Pushing the button crashes the application. 

The application does NOT crashe if columns are omitted. The application does NOT crash, if the number of items does not change or decreases.

version.txt from swt.jar says that I am using "version 3.650".
Comment 1 Eric Williams CLA 2018-04-13 15:20:46 EDT

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