Make sure all the elements in RECENTPADS are non-null objects
This commit is contained in:
@@ -866,7 +866,7 @@ define([
|
|||||||
var trashFiles = getTrashFiles();
|
var trashFiles = getTrashFiles();
|
||||||
var toClean = [];
|
var toClean = [];
|
||||||
fd.forEach(function (el, idx) {
|
fd.forEach(function (el, idx) {
|
||||||
if (typeof(el) !== "object") {
|
if (!el || typeof(el) !== "object") {
|
||||||
debug("An element in filesData was not an object.", el);
|
debug("An element in filesData was not an object.", el);
|
||||||
toClean.push(el);
|
toClean.push(el);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user