fix bluescreen ('NoneType' object has no attribute 'getPath')
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sat, 15 Apr 2006 16:31:19 +0000 (16:31 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sat, 15 Apr 2006 16:31:19 +0000 (16:31 +0000)
lib/python/Screens/ChannelSelection.py

index b2d06a4faabbd53dd91834435656a265e0224179..8d09f01fc24c5df6168979f921c36de462efbc84 100644 (file)
@@ -54,7 +54,8 @@ class ChannelContextMenu(Screen):
                        })
                menu = [ ]
 
-               inBouquetRootList = csel.getRoot().getPath().find('FROM BOUQUET "bouquets.') != -1 #FIXME HACK
+               current_root = csel.getRoot()
+               inBouquetRootList = current_root and current_root.getPath().find('FROM BOUQUET "bouquets.') != -1 #FIXME HACK
                inBouquet = csel.getMutableList() is not None
                haveBouquets = csel.bouquet_root.getPath().find('FROM BOUQUET "bouquets.') != -1