NFIFlash downloader: fix possible crash
authorFraxinas <andreas.frisch@multimedia-labs.de>
Mon, 5 Oct 2009 12:29:20 +0000 (14:29 +0200)
committerFraxinas <andreas.frisch@multimedia-labs.de>
Mon, 5 Oct 2009 12:29:20 +0000 (14:29 +0200)
lib/python/Plugins/SystemPlugins/NFIFlash/downloader.py

index ba668f8..a1522dd 100644 (file)
@@ -54,7 +54,7 @@ class Feedlist(MenuList):
 
        def isValid(self):
                l = self.l.getCurrentSelection()
 
        def isValid(self):
                l = self.l.getCurrentSelection()
-               if l[0] == 0:
+               if not l or l[0] == 0:
                        return False
                else:
                        return True
                        return False
                else:
                        return True