mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 17:26:01 +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
|
@Override
|
||||||
public FileContent getCodeReader(Object tuo) {
|
public FileContent getCodeReader(Object tuo) {
|
||||||
ITranslationUnit tu= (ITranslationUnit) tuo;
|
ITranslationUnit tu= (ITranslationUnit) tuo;
|
||||||
|
if (tu.getLocation() == null)
|
||||||
|
return null;
|
||||||
|
|
||||||
final FileContent reader= FileContent.create(tu);
|
final FileContent reader= FileContent.create(tu);
|
||||||
if (reader != null) {
|
if (reader != null) {
|
||||||
IIndexFileLocation ifl= IndexLocationFactory.getIFL(tu);
|
IIndexFileLocation ifl= IndexLocationFactory.getIFL(tu);
|
||||||
|
|
Loading…
Add table
Reference in a new issue