1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Avoid updating non-existing project. Problem reported by JUnit.

This commit is contained in:
Andrew Gvozdev 2013-04-30 17:46:22 -04:00
parent bb755a01be
commit 1c02252146

View file

@ -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);