Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gvozdev2013-04-30 21:46:22 +0000
committerAndrew Gvozdev2013-05-02 10:47:30 +0000
commit84b98695779c049fc222c9420f86934a2cc591df (patch)
tree005b38a0d3f0980f9e8715b77888c44f4ed66847
parent3a46eb448eb072d2a696a726e0a833a83e750751 (diff)
downloadorg.eclipse.cdt-84b98695779c049fc222c9420f86934a2cc591df.tar.gz
org.eclipse.cdt-84b98695779c049fc222c9420f86934a2cc591df.tar.xz
org.eclipse.cdt-84b98695779c049fc222c9420f86934a2cc591df.zip
Avoid updating non-existing project. Problem reported by JUnit.
-rw-r--r--core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/SetPathEntriesOperation.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/SetPathEntriesOperation.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/SetPathEntriesOperation.java
index 7aa2dfa93a0..dd4d9512654 100644
--- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/SetPathEntriesOperation.java
+++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/SetPathEntriesOperation.java
@@ -63,8 +63,11 @@ public class SetPathEntriesOperation extends CModelOperation {
try {
IProject projectResource = cproject.getProject();
- IProjectDescription description = projectResource.getDescription();
+ if (!projectResource.isAccessible()) {
+ return;
+ }
+ IProjectDescription description = projectResource.getDescription();
IProject[] projectReferences = description.getReferencedProjects();
HashSet<String> oldReferences = new HashSet<String>(projectReferences.length);

Back to the top