1
0
Fork 0
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:
Andrew Gvozdev 2013-09-12 08:47:10 -04:00
parent 6188a361c0
commit 75d1510005

View file

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