Fixed AS1/2 Debugger tooltips exception

This commit is contained in:
Jindra Petřík
2023-11-26 12:08:06 +01:00
parent 11760b1f18
commit 7a5aa1eb86
2 changed files with 2 additions and 1 deletions

View File

@@ -57,6 +57,7 @@ All notable changes to this project will be documented in this file.
- AS3 Direct editation - types on instance variable values not properly resolved
- AS1/2 Debugger - script was cleared on stop button
- AS1/2 Vanishing source code in some cases
- AS1/2 Debugger tooltips exception
### Changed
- [#2120] Exported assets no longer take names from assigned classes if there is more than 1 assigned class

View File

@@ -289,7 +289,7 @@ public class ActionPanel extends JPanel implements SearchListener<ScriptSearchRe
lastIns = ins;
}
if (selIns != null) {
if (selIns instanceof ActionPush) {
if ((selIns instanceof ActionPush) && (inspos > 0)) {
ActionPush ap = (ActionPush) selIns;
Object var = ap.values.get(inspos - 1);
String identifier = null;