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.