Merge branch 'master' of git.opendreambox.org:/git/enigma2
[enigma2.git] / lib / python / Components / EpgList.py
index 2494ca0808b30c30f11d9679dd0e3b58b1bae81e..fa60400fd3c34641e2374fe9a89d598058f4e262 100644 (file)
@@ -297,6 +297,8 @@ class EPGList(HTMLComponent, GUIComponent):
                return x and x[1]
 
        def moveToService(self,serviceref):
+               if not serviceref:
+                       return
                index = 0
                refstr = serviceref.toString()
                for x in self.list:
@@ -306,6 +308,8 @@ class EPGList(HTMLComponent, GUIComponent):
                        index += 1
                        
        def moveToEventId(self, eventId):
+               if not eventId:
+                       return
                index = 0
                for x in self.list:
                        if x[1] == eventId: