check if screen has already been built
[enigma2.git] / lib / python / Components / MenuList.py
index 7087574..dcbe7c1 100644 (file)
@@ -38,7 +38,8 @@ class MenuList(HTMLComponent, GUIComponent):
                self.l.setList(self.list)
 
        def moveToIndex(self, idx):
                self.l.setList(self.list)
 
        def moveToIndex(self, idx):
-               self.instance.moveSelectionTo(idx)
+               if self.instance is not None:
+                       self.instance.moveSelectionTo(idx)
 
        def pageUp(self):
                if self.instance is not None:
 
        def pageUp(self):
                if self.instance is not None: