From 96c3b2b6a77ab75da28d47ae505c104ebfa5fbe9 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Fri, 12 Oct 2007 18:22:52 -0600 Subject: [PATCH] superficial code cleanup --- src/machine.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/machine.cpp b/src/machine.cpp index 5462a43808..c675131a07 100644 --- a/src/machine.cpp +++ b/src/machine.cpp @@ -2606,10 +2606,9 @@ void printTrace(Thread* t, object exception) { if (exception == 0) { - exception = makeNullPointerException(t, 0, - makeTrace(t, t->m->processor->frameStart(t)), - 0); + exception = makeNullPointerException(t, 0, makeTrace(t), 0); } + for (object e = exception; e; e = throwableCauseUnsafe(t, e)) { if (e != exception) { fprintf(stderr, "caused by: ");