From 97762f9f9a67294e43bef17cdf7b92b339876a76 Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 16 Feb 2017 16:07:43 +0100 Subject: [PATCH] Make sure all the elements in RECENTPADS are non-null objects --- www/common/fileObject.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/fileObject.js b/www/common/fileObject.js index 99cf742a3..cc18e1084 100644 --- a/www/common/fileObject.js +++ b/www/common/fileObject.js @@ -866,7 +866,7 @@ define([ var trashFiles = getTrashFiles(); var toClean = []; fd.forEach(function (el, idx) { - if (typeof(el) !== "object") { + if (!el || typeof(el) !== "object") { debug("An element in filesData was not an object.", el); toClean.push(el); return;