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 oldReferences = new HashSet(projectReferences.length);