graphmultiepg: fix crash when press red on channel without epg
authorghost <andreas.monzner@multimedia-labs.de>
Mon, 1 Dec 2008 19:30:11 +0000 (20:30 +0100)
committerghost <andreas.monzner@multimedia-labs.de>
Mon, 1 Dec 2008 19:30:11 +0000 (20:30 +0100)
lib/python/Plugins/Extensions/GraphMultiEPG/GraphMultiEpg.py

index 1af90f1..7f422c9 100644 (file)
@@ -489,7 +489,8 @@ class GraphMultiEPG(Screen):
                if self.zapFunc and self["key_red"].getText() == "Zap":
                        self.closeRecursive = True
                        ref = self["list"].getCurrent()[1]
-                       self.zapFunc(ref.ref)
+                       if ref:
+                               self.zapFunc(ref.ref)
 
        def eventSelected(self):
                self.infoKeyPressed()