Skip to content

Commit

Permalink
Guard against null completion context and insertion text.
Browse files Browse the repository at this point in the history
- Fixes redhat-developer/vscode-java#3422

Signed-off-by: Rob Stryker <[email protected]>
  • Loading branch information
robstryker authored and rgrunber committed Dec 11, 2023
1 parent 2584b80 commit 5637fa7
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,10 @@ private boolean matchCase(CompletionProposal proposal) {
return true;
}

if (this.context.getToken() == null || proposal.getCompletion() == null) {
return true;
}

if (this.context.getToken().length == 0 || proposal.getCompletion().length == 0) {
return true;
}
Expand Down

0 comments on commit 5637fa7

Please sign in to comment.