Skip to content

Commit

Permalink
core: guard against nil text morph during suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
tom95 committed Oct 3, 2023
1 parent eab6a21 commit 1f0ad08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/Sandblocks-Core/SBBlock.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -2710,7 +2710,7 @@ SBBlock >> shouldAutocomplete [
{ #category : #suggestions }
SBBlock >> shouldSuggest [

^ self suggestAlways or: [self activeTextMorph contents size >= 2]
^ self suggestAlways or: [self activeTextMorph notNil and: [self activeTextMorph contents size >= 2]]
]

{ #category : #'as yet unclassified' }
Expand Down

0 comments on commit 1f0ad08

Please sign in to comment.