#BUGFIX by cg
authorClaus Gittinger <cg@exept.de>
Tue, 01 Aug 2017 11:46:35 +0200
changeset 22138 45645f969d48
parent 22137 444e7818131e
child 22139 c51e2379b743
#BUGFIX by cg class: Metaclass changed: #name:inEnvironment:subclassOf:instanceVariableNames:variable:words:pointers:classVariableNames:poolDictionaries:category:comment:changed:classInstanceVariableNames:
Metaclass.st
--- a/Metaclass.st	Tue Aug 01 11:42:23 2017 +0200
+++ b/Metaclass.st	Tue Aug 01 11:46:35 2017 +0200
@@ -339,14 +339,16 @@
         classInstanceVariableNames:stringOfClassInstVarNamesOrNil.
     newClass := builder buildClass.
 
-    "/ if the class was autoloaded, and it refers to any autoloaded shared pool,
-    "/ reference the pool now. So it will be present, when methods are compiled
-    "/ (avoids costy recompiles which may happen, if the sharedPool is loaded 
-    "/  after the methods have been compiled assuming that those names are globals)
-    (newClass sharedPools ? #()) do:[:each | each autoload].
+    newClass notNil ifTrue:[
+        "/ if the class was autoloaded, and it refers to any autoloaded shared pool,
+        "/ reference the pool now. So it will be present, when methods are compiled
+        "/ (avoids costy recompiles which may happen, if the sharedPool is loaded 
+        "/  after the methods have been compiled assuming that those names are globals)
+        (newClass sharedPools ? #()) do:[:each | each autoload].
+    ].
     ^ newClass
 
-    "Modified: / 12-02-2017 / 10:58:59 / cg"
+    "Modified: / 28-07-2017 / 13:40:22 / cg"
 !
 
 new