dont access windowGroup if debugger is a modal one
authorClaus Gittinger <cg@exept.de>
Thu, 02 Nov 1995 17:24:46 +0100
changeset 155 33c9fa03fc79
parent 154 2c91964259ea
child 156 e6a7f80e2a71
dont access windowGroup if debugger is a modal one
DebugView.st
--- a/DebugView.st	Wed Nov 01 15:53:14 1995 +0100
+++ b/DebugView.st	Thu Nov 02 17:24:46 1995 +0100
@@ -29,7 +29,7 @@
 COPYRIGHT (c) 1989 by Claus Gittinger
 	      All Rights Reserved
 
-$Header: /cvs/stx/stx/libtool/DebugView.st,v 1.46 1995-09-07 12:53:15 claus Exp $
+$Header: /cvs/stx/stx/libtool/DebugView.st,v 1.47 1995-11-02 16:24:46 cg Exp $
 '!
 
 !DebugView class methodsFor:'documentation'!
@@ -50,7 +50,7 @@
 
 version
 "
-$Header: /cvs/stx/stx/libtool/DebugView.st,v 1.46 1995-09-07 12:53:15 claus Exp $
+$Header: /cvs/stx/stx/libtool/DebugView.st,v 1.47 1995-11-02 16:24:46 cg Exp $
 "
 !
 
@@ -265,7 +265,7 @@
     "setup a self removing catch-block"
     catchBlock := [catchBlock := nil. ^ nil].
 
-    exclusive ifTrue:[
+    (exclusive or:[windowGroup isNil]) ifTrue:[
 	"if we do not have multiple processes or its a system process
 	 we start another dispatch loop, which exits when
 	 either continue, return or step is pressed
@@ -544,7 +544,9 @@
      We have to be careful to release all refs to the debuggee, though.
      Otherwise, the GC will not be able to release it"
 
-    windowGroup setProcess:nil.
+    windowGroup notNil ifTrue:[
+        windowGroup setProcess:nil.
+    ].
 
     busy := false.
     codeView acceptAction:nil.