From 09ee27c9208c20a3c32039437d061f8bdf524f05 Mon Sep 17 00:00:00 2001 From: Markus Schorn Date: Tue, 18 May 2010 07:01:49 +0000 Subject: [PATCH] Related to bug 312805: Indexer shall not attempt to index remote resources. --- .../internal/core/pdom/indexer/ProjectIndexerInputAdapter.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/indexer/ProjectIndexerInputAdapter.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/indexer/ProjectIndexerInputAdapter.java index 03fd25491c8..7d163a34405 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/indexer/ProjectIndexerInputAdapter.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/indexer/ProjectIndexerInputAdapter.java @@ -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);