Skip to content

Commit 220dd1a

Browse files
Fix NRE in tests
1 parent 8da0b79 commit 220dd1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PowerShellEditorServices/Services/TextDocument/Handlers/CompletionHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public override async Task<CompletionList> Handle(CompletionParams request, Canc
6666
// Treat completions trigged by space as incomplete so that `gci `
6767
// and then typing `-` doesn't just filter the list of parameter values
6868
// (typically files) returned by the space completion
69-
return new CompletionList(completionResults, isIncomplete || request.Context.TriggerCharacter is " ");
69+
return new CompletionList(completionResults, isIncomplete || request?.Context?.TriggerCharacter is " ");
7070
}
7171

7272
// Handler for "completionItem/resolve". In VSCode this is fired when a completion item is highlighted in the completion list.

0 commit comments

Comments
 (0)