Catch if Visual Elements fails (#2824)

This commit is contained in:
Peter Hedenskog 2019-12-13 09:30:57 +01:00 committed by GitHub
parent 3c09b75b0b
commit e10dec4c23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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],