summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-06-23 18:37:27 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-06-23 18:37:27 +0200
commit29f434c03ccfe6afe2543b0bad225a1ae973b986 (patch)
treee1642fb7584bb879f075e9a5130ecdb802a7b6d2
parent362bb20730ca3250f9f7c4103aeda3f8a240e7a8 (diff)
downloadUXP-29f434c03ccfe6afe2543b0bad225a1ae973b986.tar
UXP-29f434c03ccfe6afe2543b0bad225a1ae973b986.tar.gz
UXP-29f434c03ccfe6afe2543b0bad225a1ae973b986.tar.lz
UXP-29f434c03ccfe6afe2543b0bad225a1ae973b986.tar.xz
UXP-29f434c03ccfe6afe2543b0bad225a1ae973b986.zip
Fix throws an error on "about:telemetry"
-rw-r--r--toolkit/content/aboutTelemetry.js4
1 files changed, 4 insertions, 0 deletions
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];