diff options
-rw-r--r-- | core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/CModelManager.java | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/CModelManager.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/CModelManager.java index 24a55d72816..becbfc73915 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/CModelManager.java +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/CModelManager.java @@ -648,18 +648,22 @@ public class CModelManager implements IResourceChangeListener, ICDescriptorListe } } + URI fileUri = file.getLocationURI(); //Avoid name special devices, empty files and the like - if (! Util.isNonZeroLengthFile(file.getLocationURI())) { + if (! Util.isNonZeroLengthFile(fileUri)) { // PR:xxx the EFS does not seem to work for newly created file // so before bailing out give another try? //Avoid name special devices, empty files and the like - File f = new File(file.getLocationURI()); - if (f.length() == 0) { - return null; + if("file".equals(fileUri.getScheme())) { //$NON-NLS-1$ + File f = new File(fileUri); + if (f.length() == 0) { + return null; + } } //return null; } + int hints = 0; for (BinaryParserConfig parser2 : parsers) { |