mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-25 09:55:29 +02:00
Bug 364942 - completion on include (ctrl+space) causes exception
This commit is contained in:
parent
ca65292384
commit
3aa080a946
1 changed files with 3 additions and 0 deletions
|
@ -257,6 +257,9 @@ public class InclusionProposalComputer implements ICompletionProposalComputer {
|
|||
final int prefixLength = namePrefix.length();
|
||||
final IProject project= tu.getCProject().getProject();
|
||||
File[] files= fileDir.listFiles();
|
||||
if (files == null) {
|
||||
return;
|
||||
}
|
||||
IContentAssistMatcher matcher = ContentAssistMatcherFactory.getInstance().createMatcher(namePrefix);
|
||||
for (File file : files) {
|
||||
final String name= file.getName();
|
||||
|
|
Loading…
Add table
Reference in a new issue