mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Related to bug 312805: Indexer shall not attempt to index remote resources.
This commit is contained in:
parent
50b61f0c37
commit
09ee27c920
1 changed files with 3 additions and 0 deletions
|
@ -242,6 +242,9 @@ public class ProjectIndexerInputAdapter extends IndexerInputAdapter {
|
|||
@Override
|
||||
public FileContent getCodeReader(Object tuo) {
|
||||
ITranslationUnit tu= (ITranslationUnit) tuo;
|
||||
if (tu.getLocation() == null)
|
||||
return null;
|
||||
|
||||
final FileContent reader= FileContent.create(tu);
|
||||
if (reader != null) {
|
||||
IIndexFileLocation ifl= IndexLocationFactory.getIFL(tu);
|
||||
|
|
Loading…
Add table
Reference in a new issue