Handle removed methods in `#monticelloTimestamps_code` jv
authorJan Vrany <jan.vrany@labware.com>
Mon, 31 Jul 2023 16:35:49 +0100
branchjv
changeset 1176 3d6cf8c6a926
parent 1175 194ac10b8ec3
child 1177 9bf69bd3d3b7
Handle removed methods in `#monticelloTimestamps_code`
extensions.st
--- a/extensions.st	Wed Jul 12 10:58:09 2023 +0100
+++ b/extensions.st	Mon Jul 31 16:35:49 2023 +0100
@@ -496,7 +496,9 @@
         ].
     ].
     self extensionMethods do:[:mthd|
-        (mthd hasAnnotation: #mctimestamp:) ifTrue:[
+        "`mthd` may be nil if an extension has been removed,
+         hence the `notNil` check!!"
+        (mthd notNil and: [mthd hasAnnotation: #mctimestamp:]) ifTrue:[
             methodsWithTimestamp add: mthd                
         ]
     ].
@@ -508,7 +510,7 @@
     "
 
     "Created: / 09-11-2010 / 18:23:49 / Jan Vrany <jan.vrany@fit.cvut.cz>"
-    "Modified (format): / 11-07-2023 / 12:54:28 / Jan Vrany <jan.vrany@labware.com>"
+    "Modified (format): / 31-07-2023 / 16:22:38 / Jan Vrany <jan.vrany@labware.com>"
 ! !
 
 !ProjectDefinition class methodsFor:'code generation'!