From 50c050b9cdc4662d040034164cfea29a2f1135f5 Mon Sep 17 00:00:00 2001 From: Florian Fittkau <ffi@informatik.uni-kiel.de> Date: Wed, 12 Feb 2014 14:29:25 +0100 Subject: [PATCH] fixed null runtime --- .../filter/reconstruction/TraceReconstructionBuffer.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/explorviz/live_trace_processing/filter/reconstruction/TraceReconstructionBuffer.java b/src/explorviz/live_trace_processing/filter/reconstruction/TraceReconstructionBuffer.java index bb561e7..5767581 100644 --- a/src/explorviz/live_trace_processing/filter/reconstruction/TraceReconstructionBuffer.java +++ b/src/explorviz/live_trace_processing/filter/reconstruction/TraceReconstructionBuffer.java @@ -74,7 +74,10 @@ class TraceReconstructionBuffer { final Stack<AbstractBeforeEventRecord> stack = new Stack<AbstractBeforeEventRecord>(); for (final AbstractEventRecord event : events) { if (event instanceof AbstractBeforeEventRecord) { - stack.push((AbstractBeforeEventRecord) event); + final AbstractBeforeEventRecord beforeEvent = (AbstractBeforeEventRecord) event; + beforeEvent.setRuntimeStatisticInformation(new RuntimeStatisticInformation(1, -1, + -1)); // TODO if invalid trace would be null... + stack.push(beforeEvent); } else if ((event instanceof AbstractAfterEventRecord) || (event instanceof AbstractAfterFailedEventRecord)) { if (!stack.isEmpty()) { -- GitLab