tmf: Fix NullPointerException drawing time graph arrows
authorPatrick Tasse <patrick.tasse@gmail.com>
Wed, 10 Sep 2014 21:07:52 +0000 (17:07 -0400)
committerPatrick Tasse <patrick.tasse@gmail.com>
Wed, 10 Sep 2014 22:01:35 +0000 (18:01 -0400)
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>
org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/widgets/timegraph/widgets/TimeGraphControl.java

index 7edbb2456a6ac8c92f035d4f512b8effa83c9e4e..d053ccc618ffa53c4d37ebe08f2114124a8f8d2d 100644 (file)
@@ -1641,6 +1641,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;
This page took 0.032178 seconds and 5 git commands to generate.