Navigation: Fix crash when there is no servicelist
authorLittlesat <littlesat99@yahoo.com>
Sun, 29 Jul 2012 09:36:37 +0000 (11:36 +0200)
committerLittlesat <littlesat99@yahoo.com>
Sun, 29 Jul 2012 09:36:37 +0000 (11:36 +0200)
Navigation.py

index 9b9ef1d..2547ec9 100644 (file)
@@ -83,7 +83,9 @@ class Navigation:
                        if self.pnav:
                                self.pnav.stopService()
                                self.currentlyPlayingServiceReference = playref
-                               InfoBar.instance.servicelist.servicelist.setCurrent(playref)
+                               CurrentServiceList = InfoBar.instance.servicelist
+                               if CurrentServiceList is not None:
+                                       CurrentServiceList.servicelist.setCurrent(playref)
                                if self.pnav.playService(playref):
                                        print "Failed to start", playref
                                        self.currentlyPlayingServiceReference = None