DoWhatIMeanSupport.st
changeset 6163 e1e3c7f297ac
parent 6158 0245bdc85be8
child 6217 c5f760048f35
--- a/DoWhatIMeanSupport.st	Wed Oct 02 02:24:04 2019 +0200
+++ b/DoWhatIMeanSupport.st	Sun Oct 06 17:43:47 2019 +0200
@@ -1679,13 +1679,15 @@
             ].
             actions := actions asOrderedCollection.
             listOfSuggestions doWithIndex:[:suggestion :idx |
-                (suggestions includes:suggestion) ifFalse:[
-                    (selectorEndsWithColon not or:[suggestion endsWith:$:]) ifTrue:[
-                        suggestions add:suggestion.
-                        listOfActionsOrBlock isBlock ifTrue:[
-                            actions add:listOfActionsOrBlock.
-                        ] ifFalse:[
-                            actions add:(listOfActionsOrBlock at:idx).
+                suggestion notNil ifTrue:[
+                    (suggestions includes:suggestion) ifFalse:[
+                        (selectorEndsWithColon not or:[suggestion endsWith:$:]) ifTrue:[
+                            suggestions add:suggestion.
+                            listOfActionsOrBlock isBlock ifTrue:[
+                                actions add:listOfActionsOrBlock.
+                            ] ifFalse:[
+                                actions add:(listOfActionsOrBlock at:idx).
+                            ]
                         ]
                     ]
                 ]
@@ -1885,6 +1887,7 @@
 
     addSymbol :=
         [:aSymbol |
+            aSymbol isNil ifTrue:[self halt].
             (aSymbol startsWith:sym) ifTrue:[
                 (aSymbol = sym) ifFalse:[
                     possibleCompletions add:aSymbol