From: Felix Domke Date: Mon, 24 Sep 2007 00:48:34 +0000 (+0000) Subject: self.index can be None X-Git-Tag: 2.6.0~1872 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/6738100146d779e09ba53edadf116b68d7d39f36 self.index can be None --- diff --git a/lib/python/Components/Converter/StringList.py b/lib/python/Components/Converter/StringList.py index 5d02e9ba..c9488db0 100644 --- a/lib/python/Components/Converter/StringList.py +++ b/lib/python/Components/Converter/StringList.py @@ -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]