git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/trunk@1007
180e2498-e6e9-4542-8430-
84ac67f01cd8
if (!okClicked)
return null;
int row = componentSelectionTable.getSelectedRow();
if (!okClicked)
return null;
int row = componentSelectionTable.getSelectedRow();
+ if ( row < 0 ) {
+ // Nothing selected.
+ return null;
+ }
row = componentSelectionTable.convertRowIndexToModel(row);
return presets.get(row);
}
row = componentSelectionTable.convertRowIndexToModel(row);
return presets.get(row);
}