Skip to content

Commit

Permalink
[#370] catch the exception
Browse files Browse the repository at this point in the history
  • Loading branch information
BeckerFrank authored and ruspl-afed committed May 14, 2024
1 parent 9d5c906 commit e94b17b
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,12 @@ public FocusedJavaAllProposalComputer() {
@Override
public List computeCompletionProposals(ContentAssistInvocationContext context, IProgressMonitor monitor) {
if (shouldReturnResults()) {
List proposals = super.computeCompletionProposals(context, monitor);
return FocusedJavaProposalProcessor.getDefault().projectInterestModel(this, proposals);
try {
List proposals = super.computeCompletionProposals(context, monitor);
return FocusedJavaProposalProcessor.getDefault().projectInterestModel(this, proposals);
} catch (Exception e) {
return Collections.emptyList();
}
} else {
return Collections.emptyList();
}
Expand Down

0 comments on commit e94b17b

Please sign in to comment.