From e6a47129281bfb0c27ea80b39d315d4f8fd359f9 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 21 Jan 2016 15:40:10 -0500 Subject: [PATCH] fix video onError --- dashboard-ui/scripts/mediaplayer-video.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dashboard-ui/scripts/mediaplayer-video.js b/dashboard-ui/scripts/mediaplayer-video.js index e551d7670c..8c151ee6c9 100644 --- a/dashboard-ui/scripts/mediaplayer-video.js +++ b/dashboard-ui/scripts/mediaplayer-video.js @@ -1192,7 +1192,8 @@ function onError() { var errorMsg = Globalize.translate('MessageErrorPlayingVideo'); - if (item.Type == "TvChannel") { + var item = self.currentItem; + if (item && item.Type == "TvChannel") { errorMsg += '

'; errorMsg += Globalize.translate('MessageEnsureOpenTuner'); errorMsg += '

';