From 316df1c651544af3d87a7237f9a1a0ef138985db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Fri, 29 Sep 2023 19:18:11 +0200 Subject: [PATCH] ABC Explorer - Fixed index out of bounds when no ABC exist in the file --- src/com/jpexs/decompiler/flash/gui/abc/ABCExplorerDialog.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/com/jpexs/decompiler/flash/gui/abc/ABCExplorerDialog.java b/src/com/jpexs/decompiler/flash/gui/abc/ABCExplorerDialog.java index 44d7e21b4..da392ec2d 100644 --- a/src/com/jpexs/decompiler/flash/gui/abc/ABCExplorerDialog.java +++ b/src/com/jpexs/decompiler/flash/gui/abc/ABCExplorerDialog.java @@ -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")