charts: Fix numerical data that can be null
authorGeneviève Bastien <gbastien+lttng@versatic.net>
Tue, 24 Jan 2017 18:34:54 +0000 (13:34 -0500)
committerGenevieve Bastien <gbastien+lttng@versatic.net>
Tue, 31 Jan 2017 14:10:30 +0000 (09:10 -0500)
commit21e5cf4900cf69f1ca967b21f298ff00f6132519
treecd6147d63b56fd502ad44dfb264bb0d1b1a4cf32
parentc79e028aac7edf93d4cfed35c0a1363520806cf3
charts: Fix numerical data that can be null

The numerical consumer assumed the data received could not be null, but
it can be null.

If the test predicate passes, null values are mapped to zero.

Change-Id: If819bf29044a207581b36be1d35e846948c20650
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/89466
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
tmf/org.eclipse.tracecompass.tmf.chart.core.tests/src/org/eclipse/tracecompass/tmf/chart/core/tests/consumer/NumericalConsumerTest.java
tmf/org.eclipse.tracecompass.tmf.chart.core/src/org/eclipse/tracecompass/internal/tmf/chart/core/consumer/NumericalConsumer.java
This page took 0.024559 seconds and 5 git commands to generate.