| Summary: | NPE when item from the List is dragged | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Lakshmi P Shanmugam <lshanmug> | ||||
| Component: | SWT | Assignee: | Lakshmi P Shanmugam <lshanmug> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Silenio Quarti <Silenio_Quarti> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | Flags: | Silenio_Quarti:
review+
|
||||
| Version: | 3.7 | ||||||
| Target Milestone: | 3.7 RC1 | ||||||
| Hardware: | PC | ||||||
| OS: | Mac OS X | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Lakshmi P Shanmugam
Created attachment 194276 [details]
patch
In the DNDExample, list.remove() is called in DragFinished. But, the number of items doesn't get updated in the NSTableView. Hence, tableView_objectValueForTableColumn_row() is called for the removed item causing NPE.
The patch updates the number of items using noteNumberOfRowsChanged(), when required.
Silenio, can you please review?
Fixed in HEAD > 20110502. Thanks Silenio. |