fix possible crash
authorFraxinas <andreas.frisch@multimedia-labs.de>
Mon, 5 Oct 2009 15:50:21 +0000 (17:50 +0200)
committerFraxinas <andreas.frisch@multimedia-labs.de>
Mon, 5 Oct 2009 15:50:21 +0000 (17:50 +0200)
lib/python/Screens/HelpMenu.py

index 74882a3..305e355 100644 (file)
@@ -25,7 +25,8 @@ class HelpMenu(Screen, Rc):
        def SelectionChanged(self):
                self.clearSelectedKeys()
                selection = self["list"].getCurrent()
-               selection = selection[3]
+               if selection:
+                       selection = selection[3]
                #arrow = self["arrowup"]
                print "selection:", selection