update only when executed
[enigma2.git] / lib / python / Components / ServicePosition.py
index 35280cf..0cbe500 100644 (file)
@@ -100,8 +100,10 @@ class ServicePositionGauge(PerServiceBase):
                data = self.get()
                if data is None:
                        return
                data = self.get()
                if data is None:
                        return
-               self.instance.setLength(data[0])
-               self.instance.setPosition(data[1])
+
+               if self.instance is not None:
+                       self.instance.setLength(data[0])
+                       self.instance.setPosition(data[1])
                
        def stopEvent(self):
                self.disablePolling()
                
        def stopEvent(self):
                self.disablePolling()