diff --git a/src/js/player.js b/src/js/player.js index ec5c6877ff..e91b7e54af 100644 --- a/src/js/player.js +++ b/src/js/player.js @@ -2270,7 +2270,9 @@ class Player extends Component { if (err === null) { this.error_ = err; this.removeClass('vjs-error'); - this.errorDisplay.close(); + if (this.errorDisplay) { + this.errorDisplay.close(); + } return this; }