aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-04-15 16:31:19 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-04-15 16:31:19 +0000
commit2570b9e4322d85405bf56f0c97819c457ea92fa2 (patch)
tree1b9050086b4077a98e32f9bfcd2d257cee361d72 /lib/python
parent319b1d154578f02388b6a7910c5048ed3bab1343 (diff)
downloadenigma2-2570b9e4322d85405bf56f0c97819c457ea92fa2.tar.gz
enigma2-2570b9e4322d85405bf56f0c97819c457ea92fa2.zip
fix bluescreen ('NoneType' object has no attribute 'getPath')
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Screens/ChannelSelection.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/python/Screens/ChannelSelection.py b/lib/python/Screens/ChannelSelection.py
index b2d06a4f..8d09f01f 100644
--- a/lib/python/Screens/ChannelSelection.py
+++ b/lib/python/Screens/ChannelSelection.py
@@ -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