diff --git a/www/common/drive-ui.js b/www/common/drive-ui.js index 7b48c1c50..c558792bb 100644 --- a/www/common/drive-ui.js +++ b/www/common/drive-ui.js @@ -1854,7 +1854,7 @@ define([ // In list mode, display metadata from the filesData object var _addOwnership = function ($span, $state, data) { - if (data.owners && data.owners.indexOf(edPublic) !== -1) { + if (data && Array.isArray(data.owners) && data.owners.indexOf(edPublic) !== -1) : var $owned = $ownedIcon.clone().appendTo($state); $owned.attr('title', Messages.fm_padIsOwned); $span.addClass('cp-app-drive-element-owned');