tmf: Bug 506095: Fix NullPointerException in XML views
authorPatrick Tasse <patrick.tasse@gmail.com>
Thu, 9 Mar 2017 21:34:24 +0000 (16:34 -0500)
committerPatrick Tasse <patrick.tasse@gmail.com>
Mon, 13 Mar 2017 17:31:55 +0000 (13:31 -0400)
commit996272cd863ff9ee37cea2cec699819cd19e855a
tree27b64e15a0c4641164255c6a50db735494b5a508
parentd45d05a1306dfaa1ae46cc30e46caaf8ca4df356
tmf: Bug 506095: Fix NullPointerException in XML views

When the XML Time Graph View or XML XY Chart View is opened from the
Window > Show View > Other... menu, it does not have a secondaryId. This
should not cause an exception, and the view should remain blank.

Additionally, the view should then not wait for the viewInfo name to be
set, it will never happen and the build job or line chart update thread
remains stuck forever. As a consequence, the viewInfo should be
initialized before creating the view controls.

Change-Id: I0d21cbcc02505bd5d83b7fb4335bf780943fe136
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/92736
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-by: Hudson CI
tmf/org.eclipse.tracecompass.tmf.analysis.xml.ui/src/org/eclipse/tracecompass/internal/tmf/analysis/xml/ui/views/timegraph/XmlTimeGraphView.java
tmf/org.eclipse.tracecompass.tmf.analysis.xml.ui/src/org/eclipse/tracecompass/internal/tmf/analysis/xml/ui/views/xychart/XmlXYView.java
tmf/org.eclipse.tracecompass.tmf.analysis.xml.ui/src/org/eclipse/tracecompass/internal/tmf/analysis/xml/ui/views/xychart/XmlXYViewer.java
This page took 0.024821 seconds and 5 git commands to generate.