From 29f434c03ccfe6afe2543b0bad225a1ae973b986 Mon Sep 17 00:00:00 2001 From: janekptacijarabaci Date: Sat, 23 Jun 2018 18:37:27 +0200 Subject: Fix throws an error on "about:telemetry" --- toolkit/content/aboutTelemetry.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'toolkit/content') diff --git a/toolkit/content/aboutTelemetry.js b/toolkit/content/aboutTelemetry.js index 2cf5e8909..c73a979c6 100644 --- a/toolkit/content/aboutTelemetry.js +++ b/toolkit/content/aboutTelemetry.js @@ -75,6 +75,10 @@ function isFlatArray(obj) { * This is a helper function for explodeObject. */ function flattenObject(obj, map, path, array) { + if (!obj) { + return; + } + for (let k of Object.keys(obj)) { let newPath = [...path, array ? "[" + k + "]" : k]; let v = obj[k]; -- cgit v1.2.3