From e10dec4c230dc3fd199ec657a969b06aad30a2e3 Mon Sep 17 00:00:00 2001 From: Peter Hedenskog Date: Fri, 13 Dec 2019 09:30:57 +0100 Subject: [PATCH] Catch if Visual Elements fails (#2824) --- lib/plugins/browsertime/aggregator.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/plugins/browsertime/aggregator.js b/lib/plugins/browsertime/aggregator.js index f32bef92f..96a9e0336 100644 --- a/lib/plugins/browsertime/aggregator.js +++ b/lib/plugins/browsertime/aggregator.js @@ -90,7 +90,8 @@ module.exports = { }); forEach(browsertimeRunData.visualMetrics, (value, name) => { - if (name !== 'VisualProgress') { + // Sometimes visual elements fails and gives us null values + if (name !== 'VisualProgress' && value !== null) { statsHelpers.pushGroupStats( this.statsPerType, this.groups[group],