add list not empty check
[enigma2.git] / lib / python / Screens / InfoBarGenerics.py
index d08a050b343850a4fbf5f135cb616281bc428618..c3c6e21abd6ce0d94d65f53278f4f0c3bcd61cb1 100644 (file)
@@ -448,7 +448,8 @@ class InfoBarEPG:
                if self.is_now_next and len(self.dlg_stack) == 1:
                        self.getNowNext()
                        assert self.eventView
-                       self.eventView.setEvent(self.epglist[0])
+                       if len(self.epglist):
+                               self.eventView.setEvent(self.epglist[0])
 
        def openEventView(self):
                ref = self.session.nav.getCurrentlyPlayingServiceReference()