fix bluescreen ... i hope this is okay
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Tue, 25 Jul 2006 17:38:05 +0000 (17:38 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Tue, 25 Jul 2006 17:38:05 +0000 (17:38 +0000)
lib/python/Components/Element.py

index 884c87d393d920f0b1bec8a2e012be0b80d25e0e..54a1cc251cce6239537eec090249279db409d0d8 100644 (file)
@@ -29,7 +29,8 @@ class Element:
                # we should not disconnect from upstream if
                # there are still elements depending on us.
                assert len(self.downstream_elements) == 0, "there are still downstream elements left"
-               self.source.disconnectDownstream(self)
+               if self.source:
+                       self.source.disconnectDownstream(self)
        
        def disconnectDownstream(self, downstream):
                self.downstream_elements.remove(downstream)