Fix some null warnings
[deliverable/tracecompass.git] / analysis / org.eclipse.tracecompass.analysis.graph.core / src / org / eclipse / tracecompass / internal / analysis / graph / core / base / TmfGraphStatistics.java
index 0d5814a240ec9361aaf6da33287bd878fbac6429..70974d9286ae02b3711a14196ed2c630b418fc0a 100644 (file)
@@ -79,6 +79,9 @@ public class TmfGraphStatistics implements ITmfGraphVisitor {
         synchronized (fWorkerStats) {
             if (horizontal && graph != null) {
                 IGraphWorker worker = graph.getParentOf(edge.getVertexFrom());
+                if (worker == null) {
+                    return;
+                }
                 Long duration = edge.getDuration();
                 Long currentTotal = fWorkerStats.get(worker);
                 if (currentTotal != null) {
This page took 0.025087 seconds and 5 git commands to generate.