#BUGFIX
authorStefan Vogel <sv@exept.de>
Thu, 01 Oct 2015 13:03:55 +0200
changeset 15877 9e23be012748
parent 15876 f6c3e18d8dfd
child 15878 9df06bebe9e9
#BUGFIX class: DictionaryInspectorView added: #indexedValueAtKey: be tolerant when entries in weak dictionaries vanish
DictionaryInspectorView.st
--- a/DictionaryInspectorView.st	Thu Oct 01 09:15:36 2015 +0200
+++ b/DictionaryInspectorView.st	Thu Oct 01 13:03:55 2015 +0200
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "
  COPYRIGHT (c) 1993 by Claus Gittinger
 	      All Rights Reserved
@@ -631,6 +633,14 @@
     "Modified: / 25-07-2014 / 09:44:34 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
+indexedValueAtKey:key
+    object isWeakCollection ifTrue:[
+        "keys may vanish"
+        ^ object at:key ifAbsent:[].
+    ].
+    ^ object at:key
+!
+
 instVarIndexForLine:lineNr
     "helper - return the index for a named instVar;
      nil, if self or a keyed instvar is selected."
@@ -749,10 +759,10 @@
 !DictionaryInspectorView class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libtool/DictionaryInspectorView.st,v 1.87 2015-06-08 19:28:33 cg Exp $'
+    ^ '$Header$'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libtool/DictionaryInspectorView.st,v 1.87 2015-06-08 19:28:33 cg Exp $'
+    ^ '$Header$'
 ! !