mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-18 21:08:08 +00:00
AS1/2: ignoring pop on empty stack
This commit is contained in:
@@ -37,6 +37,9 @@ public class ActionPop extends Action {
|
||||
|
||||
@Override
|
||||
public void translate(Stack<TreeItem> stack, ConstantPool constants, List<TreeItem> output, java.util.HashMap<Integer, String> regNames) {
|
||||
if(stack.isEmpty()){
|
||||
return;
|
||||
}
|
||||
TreeItem val = stack.pop();
|
||||
if (!(val instanceof DirectValueTreeItem)) {
|
||||
output.add(new VoidTreeItem(this, val));
|
||||
|
||||
Reference in New Issue
Block a user