From 5e077eb024489aa4810c724de1269b28c5880645 Mon Sep 17 00:00:00 2001 From: "honfika@gmail.com" Date: Wed, 4 Nov 2015 08:38:52 +0100 Subject: [PATCH] build fix --- .../decompiler/flash/gui/abc/ASMSourceEditorPane.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/com/jpexs/decompiler/flash/gui/abc/ASMSourceEditorPane.java b/src/com/jpexs/decompiler/flash/gui/abc/ASMSourceEditorPane.java index 700ca49e4..4c4015b09 100644 --- a/src/com/jpexs/decompiler/flash/gui/abc/ASMSourceEditorPane.java +++ b/src/com/jpexs/decompiler/flash/gui/abc/ASMSourceEditorPane.java @@ -18,6 +18,7 @@ package com.jpexs.decompiler.flash.gui.abc; import com.jpexs.decompiler.flash.abc.ABC; import com.jpexs.decompiler.flash.abc.avm2.AVM2Code; +import com.jpexs.decompiler.flash.abc.avm2.AVM2ExecutionException; import com.jpexs.decompiler.flash.abc.avm2.graph.AVM2Graph; import com.jpexs.decompiler.flash.abc.avm2.parser.AVM2ParseException; import com.jpexs.decompiler.flash.abc.avm2.parser.pcode.ASM3Parser; @@ -199,8 +200,12 @@ public class ASMSourceEditorPane extends LineMarkedEditorPane implements CaretLi HashMap args = new HashMap<>(); args.put(0, new Object()); //object "this" args.put(1, 466561L); //param1 - Object o = abc.bodies.get(bodyIndex).getCode().execute(args, abc.constants); - View.showMessageDialog(this, "Returned object:" + o.toString()); + try { + Object o = abc.bodies.get(bodyIndex).getCode().execute(args, abc.constants); + View.showMessageDialog(this, "Returned object:" + o.toString()); + } catch (AVM2ExecutionException ex) { + Logger.getLogger(ASMSourceEditorPane.class.getName()).log(Level.SEVERE, null, ex); + } } public boolean save() {