From 7c1b7fe307737d330493694f0735b380b718576c Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Tue, 25 Jul 2006 17:38:05 +0000 Subject: [PATCH] fix bluescreen ... i hope this is okay --- lib/python/Components/Element.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/python/Components/Element.py b/lib/python/Components/Element.py index 884c87d3..54a1cc25 100644 --- a/lib/python/Components/Element.py +++ b/lib/python/Components/Element.py @@ -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) -- 2.30.2