To reproduce bug:
1. Erase vienna.* from user directory.
2. Start vienna. This will create a new vienna.xml
3. File menu. Configure option. This will bring the
options dialog.
4. Connections tab. Select "scott". Click on trash
icon. This will delete the scott profile.
5. OK to close dialog. File Quit to close vienna.
6. Start vienna again. This will fail.
I've traced the bug to line 337 of ConfigModel.java:
while (i.hasNext ())
{
ConnectionModel m = (ConnectionModel) i.next ();
connectionList.addElement (m.getName ());
337: connectionListModel = new ConnectionListModel
(connectionList);
}
The creation of connectionListModel needs to be moved
outside the while loop, as follows:
while (i.hasNext ())
{
ConnectionModel m = (ConnectionModel) i.next ();
connectionList.addElement (m.getName ());
}
connectionListModel = new ConnectionListModel
(connectionList);
With this change, the above bug is solved.
I've attached the modified file.
ConfigModel.java