mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-27034 null completion process during completion
This commit is contained in:
+3
-1
@@ -85,7 +85,9 @@ public class CompletionServiceImpl extends CompletionService{
|
||||
final String prefix = CompletionData.findPrefixStatic(position, parameters.getOffset());
|
||||
final String textBeforePosition = parameters.getPosition().getContainingFile().getText().substring(0, parameters.getOffset());
|
||||
CompletionProgressIndicator process = myCurrentCompletion;
|
||||
LOG.assertTrue(process != null, "createResultSet may be invoked only during completion");
|
||||
if (process == null) {
|
||||
throw new AssertionError("createResultSet may be invoked only during completion: " + ourPhase + "; set at " + ourPhaseTrace);
|
||||
}
|
||||
CamelHumpMatcher matcher = new CamelHumpMatcher(prefix, true, parameters.relaxMatching());
|
||||
CompletionSorterImpl sorter = defaultSorter(parameters, matcher);
|
||||
return new CompletionResultSetImpl(consumer, textBeforePosition, matcher, contributor,parameters, sorter, process, null);
|
||||
|
||||
Reference in New Issue
Block a user