OSD3DSetup: Add sanity check
authorlittlesat <littlesat99@yahoo.com>
Sat, 4 Jul 2015 09:46:10 +0000 (11:46 +0200)
committerlittlesat <littlesat99@yahoo.com>
Sat, 4 Jul 2015 09:46:10 +0000 (11:46 +0200)
http://forums.openpli.org/topic/38338-vastloper-bij-herhalende-timer/

lib/python/Plugins/SystemPlugins/OSD3DSetup/plugin.py

index 242a328..3c02ee9 100644 (file)
@@ -103,7 +103,7 @@ class auto3D(Screen):
        def checkIfDedicated3D(self):
                        service = self.session.nav.getCurrentlyPlayingServiceReference()
                        servicepath = service and service.getPath()
-                       if servicepath.startswith("/"):
+                       if servicepath and servicepath.startswith("/"):
                                if service.toString().startswith("1:"):
                                        info = eServiceCenter.getInstance().info(service)
                                        service = info and info.getInfoString(service, iServiceInformation.sServiceref)