ABC Explorer - Fixed index out of bounds when no ABC exist in the file

This commit is contained in:
Jindra Petřík
2023-10-01 18:21:38 +02:00
parent d3103b3122
commit 316df1c651
@@ -142,6 +142,9 @@ public class ABCExplorerDialog extends AppDialog {
private void abcComboBoxActionPerformed(ActionEvent e) {
int index = abcComboBox.getSelectedIndex();
if (index == -1) {
return;
}
ABC abc = abcContainers.get(index).getABC();
tagInfoLabel.setText(
translate("abc.info")