linux.ui: make Control flow view optimization work with mixed experiments
authorMatthew Khouzam <matthew.khouzam@ericsson.com>
Fri, 9 Sep 2016 13:47:38 +0000 (09:47 -0400)
committerMatthew Khouzam <matthew.khouzam@ericsson.com>
Mon, 12 Sep 2016 19:57:56 +0000 (15:57 -0400)
bug 501148

Change-Id: Ieaeb1384a8bd6325192d6407422059c98d0f73c1
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/80804
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-by: Hudson CI
analysis/org.eclipse.tracecompass.analysis.os.linux.ui/src/org/eclipse/tracecompass/internal/analysis/os/linux/ui/views/controlflow/ControlFlowView.java

index 22abb0fa007a09e47e041224fb1472f7648bab91..133872b9f57be1827ff310f795dab23d0f4c8b6f 100644 (file)
@@ -387,8 +387,11 @@ public class ControlFlowView extends AbstractStateSystemTimeGraphView {
                     fFlatTraces.add(parentTrace);
                     for (ITmfTrace trace : TmfTraceManager.getTraceSet(parentTrace)) {
                         final ITmfStateSystem ss = TmfStateSystemAnalysisModule.getStateSystem(trace, KernelAnalysisModule.ID);
-                        for (TimeGraphEntry traceEntry : getEntryList(ss)) {
-                            hierarchicalToFlatTree(traceEntry);
+                        List<@NonNull TimeGraphEntry> entryList = getEntryList(ss);
+                        if (entryList != null) {
+                            for (TimeGraphEntry traceEntry : entryList) {
+                                hierarchicalToFlatTree(traceEntry);
+                            }
                         }
                     }
                 }
This page took 0.027547 seconds and 5 git commands to generate.