Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Recoskie2008-04-04 17:48:27 +0000
committerChris Recoskie2008-04-04 17:48:27 +0000
commit504602213a5ed701fc2fb8ebf31bfa7def5a563b (patch)
tree3abcc3cf5944c57b76af5542fa9dbb30acf210db /core/org.eclipse.cdt.core/parser
parentaf3f69afb9ed7804041fdb5d405c411ac22cfd4e (diff)
downloadorg.eclipse.cdt-504602213a5ed701fc2fb8ebf31bfa7def5a563b.tar.gz
org.eclipse.cdt-504602213a5ed701fc2fb8ebf31bfa7def5a563b.tar.xz
org.eclipse.cdt-504602213a5ed701fc2fb8ebf31bfa7def5a563b.zip
Various changes for EFS
- Fixed many NPEs in the build system that occurred when IProject.getLocation() returned null - Created new IStorage implementation (EFSFileStorage) for the editor which can handle EFS resources - added some utility methods for handling EFS resources
Diffstat (limited to 'core/org.eclipse.cdt.core/parser')
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/TeamPDOMImportOperation.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/TeamPDOMImportOperation.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/TeamPDOMImportOperation.java
index bf43aa1a02e..3817774c0bc 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/TeamPDOMImportOperation.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/TeamPDOMImportOperation.java
@@ -137,7 +137,9 @@ public class TeamPDOMImportOperation implements IWorkspaceRunnable {
IStringVariableManager varManager= VariablesPlugin.getDefault().getStringVariableManager();
IPath location= new Path(varManager.performStringSubstitution(loc));
if (!location.isAbsolute()) {
- location= project.getLocation().append(location);
+
+ if(project.getLocation() != null)
+ location= project.getLocation().append(location);
}
return location.toFile();
}

Back to the top