Fix in JavaSourceDocument>>#initializeSourceRefsInMethods development
authorJan Vrany <jan.vrany@fit.cvut.cz>
Sun, 27 Oct 2013 10:28:57 +0000
branchdevelopment
changeset 2895 70df89fe0af0
parent 2894 75e3fb8a615f
child 2896 edaa0c80646e
child 2898 20d65bcdae80
Fix in JavaSourceDocument>>#initializeSourceRefsInMethods
tools/JavaSourceDocument.st
--- a/tools/JavaSourceDocument.st	Sun Oct 27 09:43:00 2013 +0000
+++ b/tools/JavaSourceDocument.st	Sun Oct 27 10:28:57 2013 +0000
@@ -247,7 +247,9 @@
         javaClass methodDictionary  keysAndValuesDo: [:selector :method | 
             "/ ensure class is parsed...
             enclosingMethod sourceDocument sourceTree.
-            method setSource: (enclosingMethod getSource).
+            enclosingMethod getSource notNil ifTrue:[
+                method setSource: (enclosingMethod getSource).
+            ].
         ].
         ^ self
     ].
@@ -286,7 +288,7 @@
     ]
 
     "Created: / 07-09-2013 / 01:43:06 / Jan Vrany <jan.vrany@fit.cvut.cz>"
-    "Modified: / 18-10-2013 / 11:06:49 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+    "Modified: / 27-10-2013 / 09:44:15 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 !
 
 initializeSourceTree