diff --git a/org.ntlab.traceAnalyzer/src/org/ntlab/trace/Trace.java b/org.ntlab.traceAnalyzer/src/org/ntlab/trace/Trace.java index 7067007..ddbe614 100644 --- a/org.ntlab.traceAnalyzer/src/org/ntlab/trace/Trace.java +++ b/org.ntlab.traceAnalyzer/src/org/ntlab/trace/Trace.java @@ -121,9 +121,11 @@ stack.pop(); } else { do { - line2 = stack.pop(); + stack.pop(); thread.terminateMethod(); + line2 = stack.peek(); } while (!stack.isEmpty() && !line2.split("\\(")[0].endsWith(line.split("\\(")[1])); + if (!stack.isEmpty()) stack.pop(); } thread = threads.get(threadNo); ObjectReference returnValue = new ObjectReference(returnData[2], returnData[1]);