Make sure all the elements in RECENTPADS are non-null objects

pull/1/head
yflory 8 years ago
parent 92050eb04f
commit 97762f9f9a

@ -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;

Loading…
Cancel
Save