diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-06-23 18:37:27 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-06-23 18:37:27 +0200 |
commit | 29f434c03ccfe6afe2543b0bad225a1ae973b986 (patch) | |
tree | e1642fb7584bb879f075e9a5130ecdb802a7b6d2 /toolkit/content | |
parent | 362bb20730ca3250f9f7c4103aeda3f8a240e7a8 (diff) | |
download | uxp-29f434c03ccfe6afe2543b0bad225a1ae973b986.tar.gz |
Fix throws an error on "about:telemetry"
Diffstat (limited to 'toolkit/content')
-rw-r--r-- | toolkit/content/aboutTelemetry.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/toolkit/content/aboutTelemetry.js b/toolkit/content/aboutTelemetry.js index 2cf5e89090..c73a979c6f 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]; |