History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: COO-122
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Pete Butland
Reporter: Kévin Ferrare
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Google issue summary
Cooee

Crash with SelectField component

Created: 07/Dec/07 04:22 PM   Updated: 10/Nov/08 01:42 PM
Component/s: [Component] SelectField / SelectFieldEx
Affects Version/s: COOEE-CORE-1.1
Fix Version/s: COOEE-CORE-1.2

File Attachments: 1. File AbstractListComponent.java.diff (0.8 kb)



 Description  « Hide
Create a SelectField, sets its ListModel model1, let the user play with it (change the selectedIndex)
Now set another ListModel model2 to the component.

When calling getSelectedItem() with the number of items in model2 lower than the selected index with model1, the component crashes.
This happens because the SelectionModel is not cleared when setting the new model, so the selected index may be out of bound.



 All   Comments   Change History      Sort Order:
Kévin Ferrare - [07/Dec/07 04:28 PM ]
A patch that solves this issue