self.index can be None
authorFelix Domke <tmbinc@elitedvb.net>
Mon, 24 Sep 2007 00:48:34 +0000 (00:48 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Mon, 24 Sep 2007 00:48:34 +0000 (00:48 +0000)
lib/python/Components/Converter/StringList.py

index 5d02e9bad269178c07dd374c77b8b54d23a075a1..c9488db02216b7ca7df30f3d60e8ac3f5ac80e22 100644 (file)
@@ -25,7 +25,7 @@ class StringList(Converter):
 
        @cached
        def getCurrent(self):
-               if self.source is None or self.index >= len(self.source.list):
+               if self.source is None or self.index is None or self.index >= len(self.source.list):
                        return None
                return self.source.list[self.index]