lami: getSymbolColors can return null
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 21 Sep 2016 19:06:52 +0000 (15:06 -0400)
committerAlexandre Montplaisir <alexmonthy@efficios.com>
Mon, 3 Oct 2016 16:28:18 +0000 (12:28 -0400)
Fixes CID 112047

Change-Id: Ib48dc0fdf1b50c0904ba22683de6cf5f7fe331ea
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Reviewed-on: https://git.eclipse.org/r/81625
Reviewed-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-by: Hudson CI
Tested-by: Alexandre Montplaisir <alexmonthy@efficios.com>
analysis/org.eclipse.tracecompass.analysis.lami.ui/src/org/eclipse/tracecompass/internal/provisional/analysis/lami/ui/viewers/LamiScatterViewer.java

index 71af50faf029483c98f2328cae07dcea01486b28..d25c446bb0a525a2343866e99df343090bcdfc0b 100644 (file)
@@ -688,6 +688,10 @@ public class LamiScatterViewer extends LamiXYChartViewer {
             Color lightColor = lightColorsIt.next();
             Color color = colorsIt.next();
             Color[] colors = ((ILineSeries) series).getSymbolColors();
+            if (colors == null) {
+                /* Should never happen */
+                continue;
+            }
 
             if (currentSelections.isEmpty()) {
                 /* Put all symbols to the normal colors */
This page took 0.024469 seconds and 5 git commands to generate.