mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-11 10:15:39 +02:00
bug 416628: to fix intermittently failing test case
This commit is contained in:
parent
6188a361c0
commit
75d1510005
1 changed files with 80 additions and 72 deletions
|
@ -695,10 +695,18 @@ public class CoreModelUtil {
|
|||
String projName = entry.getKey();
|
||||
String cfgId = entry.getValue();
|
||||
IProject project = root.getProject(projName);
|
||||
if (!project.exists())
|
||||
if (!project.isAccessible())
|
||||
continue;
|
||||
|
||||
ICProjectDescription des = model.getProjectDescription(project, writable);
|
||||
ICProjectDescription des = null;
|
||||
try {
|
||||
des = model.getProjectDescription(project, writable);
|
||||
} catch (Exception e) {
|
||||
// log the error except if the project got closed in another thread which is OK
|
||||
if (project.isAccessible()) {
|
||||
CCorePlugin.log(e);
|
||||
}
|
||||
}
|
||||
if (des == null)
|
||||
continue;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue