1
0
Fork 0
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:
Markus Schorn 2010-05-18 07:01:49 +00:00
parent 50b61f0c37
commit 09ee27c920

View file

@ -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);