don't crash when no StreamService reference was set
[enigma2.git] / lib / python / Components / Sources / StreamService.py
index ac8db34..fbd3d25 100644 (file)
@@ -29,6 +29,9 @@ class StreamService(Source):
                self.changed((self.CHANGED_ALL, ))
 
        def execBegin(self):
+               if self.ref is None:
+                       print "StreamService has no service ref set."
+                       return
                print "StreamService execBegin", self.ref.toString()
                self.__service = self.navcore.recordService(self.ref)
                self.navcore.record_event.append(self.recordEvent)