From a38e3d37224cd6e9f4fd65251bc78d0d1b86e156 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Sat, 24 Nov 2007 12:56:11 +0000 Subject: [PATCH] don't crash when no StreamService reference was set --- lib/python/Components/Sources/StreamService.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/python/Components/Sources/StreamService.py b/lib/python/Components/Sources/StreamService.py index ac8db34d..fbd3d255 100644 --- a/lib/python/Components/Sources/StreamService.py +++ b/lib/python/Components/Sources/StreamService.py @@ -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) -- 2.30.2