None check
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 24 Apr 2006 13:56:29 +0000 (13:56 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 24 Apr 2006 13:56:29 +0000 (13:56 +0000)
lib/python/Screens/ChannelSelection.py

index 0e3ee2f..2bc6259 100644 (file)
@@ -215,7 +215,7 @@ class ChannelSelectionEdit:
                serviceHandler = eServiceCenter.getInstance()
                if not root.valid():
                        root=self.getRoot()
                serviceHandler = eServiceCenter.getInstance()
                if not root.valid():
                        root=self.getRoot()
-               list = serviceHandler.list(root)
+               list = root and serviceHandler.list(root)
                if list is not None:
                        return list.startEdit()
                return None
                if list is not None:
                        return list.startEdit()
                return None