handle attempt to remove nil.
authorClaus Gittinger <cg@exept.de>
Tue, 03 Feb 1998 14:34:21 +0100
changeset 3265 18d96c910653
parent 3264 3895fca7d87f
child 3266 839e8f33d509
handle attempt to remove nil.
Set.st
--- a/Set.st	Tue Feb 03 14:23:12 1998 +0100
+++ b/Set.st	Tue Feb 03 14:34:21 1998 +0100
@@ -247,6 +247,8 @@
 
     |index next|
 
+    oldObject isNil ifTrue:[^ exceptionBlock value].
+
     index := self find:oldObject ifAbsent:0.
     index == 0 ifTrue:[^ exceptionBlock value].
 
@@ -267,7 +269,7 @@
     ].
     ^ oldObject
 
-    "Modified: 29.1.1997 / 21:34:33 / cg"
+    "Modified: / 2.2.1998 / 23:17:27 / cg"
 !
 
 removeAll
@@ -782,6 +784,6 @@
 !Set class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/Set.st,v 1.55 1998-02-02 16:27:21 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Set.st,v 1.56 1998-02-03 13:34:21 cg Exp $'
 ! !
 Set initialize!