tmf: Fix NPE in XmlPresentationProvider for undefined states
authorBernd Hufmann <Bernd.Hufmann@ericsson.com>
Wed, 9 Mar 2016 16:18:16 +0000 (11:18 -0500)
committerBernd Hufmann <bernd.hufmann@ericsson.com>
Mon, 18 Apr 2016 18:38:49 +0000 (14:38 -0400)
commit5a016e25b641089d367ebf392172b92ff7ae8d89
treec65244f0d740f891c148dba0699bb798b7637b8d
parent631d47f14c9c5019009f1b8fd2d19b867613b585
tmf: Fix NPE in XmlPresentationProvider for undefined states

A NullPointerException was caused when creating a state tooltip for
state values that are not defined in the XML definition.

This patch avoids the NPE in this case. The state tooltip won't be
shown when this happens.

Change-Id: I07ca75d7bb39d3479c225b4b144e1acc119eae3b
Signed-off-by: Bernd Hufmann <Bernd.Hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/68072
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-by: Hudson CI
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
tmf/org.eclipse.tracecompass.tmf.analysis.xml.ui/src/org/eclipse/tracecompass/tmf/analysis/xml/ui/views/timegraph/XmlPresentationProvider.java
This page took 0.025349 seconds and 5 git commands to generate.