From: Andreas Monzner Date: Sat, 15 Apr 2006 16:31:19 +0000 (+0000) Subject: fix bluescreen ('NoneType' object has no attribute 'getPath') X-Git-Tag: 2.6.0~3613 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/2570b9e4322d85405bf56f0c97819c457ea92fa2 fix bluescreen ('NoneType' object has no attribute 'getPath') --- 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