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:
parent
bb755a01be
commit
1c02252146
1 changed files with 4 additions and 1 deletions
|
@ -63,8 +63,11 @@ public class SetPathEntriesOperation extends CModelOperation {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
IProject projectResource = cproject.getProject();
|
IProject projectResource = cproject.getProject();
|
||||||
IProjectDescription description = projectResource.getDescription();
|
if (!projectResource.isAccessible()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
IProjectDescription description = projectResource.getDescription();
|
||||||
IProject[] projectReferences = description.getReferencedProjects();
|
IProject[] projectReferences = description.getReferencedProjects();
|
||||||
|
|
||||||
HashSet<String> oldReferences = new HashSet<String>(projectReferences.length);
|
HashSet<String> oldReferences = new HashSet<String>(projectReferences.length);
|
||||||
|
|
Loading…
Add table
Reference in a new issue