From 9b5020c3ec6d311ffcde891eb6fa9f144dc5e119 Mon Sep 17 00:00:00 2001 From: jochen Date: Sun, 27 Jun 1999 21:00:21 +0000 Subject: [PATCH] catch runtime exceptions in dumpExpression git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@929 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/expr/Expression.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jode/jode/expr/Expression.java b/jode/jode/expr/Expression.java index 8506294..1d099f2 100644 --- a/jode/jode/expr/Expression.java +++ b/jode/jode/expr/Expression.java @@ -267,7 +267,11 @@ public abstract class Expression { writer.print("("); } - dumpExpression(writer); + try { + dumpExpression(writer); + } catch (RuntimeException ex) { + writer.print("(RUNTIME ERROR IN EXPRESSION)"); + } if (needParen2) writer.print(")");