Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Tasse2014-09-10 17:07:52 -0400
committerPatrick Tasse2014-09-11 10:43:23 -0400
commitd1c34e4239a724a2c85d0cc6355c9d62c31b2b7c (patch)
tree32ecc1a73bc026dbc37a3d7537427ce1e4eaa858
parent36883b559383aa9e004392daa07195f6b7b15a90 (diff)
downloadorg.eclipse.linuxtools-d1c34e4239a724a2c85d0cc6355c9d62c31b2b7c.tar.gz
org.eclipse.linuxtools-d1c34e4239a724a2c85d0cc6355c9d62c31b2b7c.tar.xz
org.eclipse.linuxtools-d1c34e4239a724a2c85d0cc6355c9d62c31b2b7c.zip
tmf: Fix NullPointerException drawing time graph arrows
Change-Id: Ic3fd6c9646a4d6a62c6421ab5392fe0d4f4b152c Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com> Reviewed-on: https://git.eclipse.org/r/33213 Tested-by: Hudson CI Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com> Reviewed-on: https://git.eclipse.org/r/33217 Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
-rw-r--r--lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/widgets/TimeGraphControl.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/widgets/TimeGraphControl.java b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/widgets/TimeGraphControl.java
index 9a2ecb04be..ffaf12bf1c 100644
--- a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/widgets/TimeGraphControl.java
+++ b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/widgets/TimeGraphControl.java
@@ -1601,6 +1601,9 @@ public class TimeGraphControl extends TimeGraphBaseControl
protected boolean drawArrow(TimeGraphColorScheme colors, ITimeEvent event,
Rectangle rect, GC gc) {
+ if (rect == null) {
+ return false;
+ }
int colorIdx = fTimeGraphProvider.getStateTableIndex(event);
if (colorIdx < 0) {
return false;

Back to the top