diff --git a/core/trashcan.js b/core/trashcan.js index 3ef5ec3c0..417886088 100644 --- a/core/trashcan.js +++ b/core/trashcan.js @@ -387,7 +387,7 @@ Trashcan.prototype.hasContents_ = function() { * @return {boolean} True if the trashcan contents-flyout is currently open. */ Trashcan.prototype.contentsIsOpen = function() { - return this.flyout.isVisible(); + return this.flyout && this.flyout.isVisible(); }; /**