From d0c889ccfe9e95e4a42a9ccc3dccda48126fcee6 Mon Sep 17 00:00:00 2001 From: jochen Date: Sun, 27 Jun 1999 21:05:55 +0000 Subject: [PATCH] catch runtime exception in dump git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@939 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/flow/InstructionBlock.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/jode/jode/flow/InstructionBlock.java b/jode/jode/flow/InstructionBlock.java index 60953d2..35ecfd5 100644 --- a/jode/jode/flow/InstructionBlock.java +++ b/jode/jode/flow/InstructionBlock.java @@ -144,7 +144,12 @@ public class InstructionBlock extends InstructionContainer { } else { if (instr.getType() != Type.tVoid) writer.print("PUSH "); - instr.dumpExpression(writer); + + try { + instr.dumpExpression(writer); + } catch (RuntimeException ex) { + writer.print("(RUNTIME ERROR IN EXPRESSION)"); + } } writer.println(";"); }