From: Andreas Monzner Date: Sun, 14 May 2006 18:24:54 +0000 (+0000) Subject: add list not empty check X-Git-Tag: 2.6.0~3430 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/4438bf2708045c28b32839ae840866d861bace03 add list not empty check --- diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py index d08a050b..c3c6e21a 100644 --- a/lib/python/Screens/InfoBarGenerics.py +++ b/lib/python/Screens/InfoBarGenerics.py @@ -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()