diff --git a/www/common/fileObject.js b/www/common/fileObject.js index c99c54a7e..5118c7645 100644 --- a/www/common/fileObject.js +++ b/www/common/fileObject.js @@ -876,7 +876,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;