From d7dc313c499830cef8fd9d82b06b8416425bd797 Mon Sep 17 00:00:00 2001 From: Andrew Gvozdev Date: Sat, 21 Sep 2013 06:19:24 -0400 Subject: [PATCH] bug 416628: to fix intermittently failing test case --- .../settings/model/xml/XmlProjectDescriptionStorage.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/settings/model/xml/XmlProjectDescriptionStorage.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/settings/model/xml/XmlProjectDescriptionStorage.java index eafe5997e1f..ee65ea7b3b6 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/settings/model/xml/XmlProjectDescriptionStorage.java +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/settings/model/xml/XmlProjectDescriptionStorage.java @@ -243,7 +243,10 @@ public class XmlProjectDescriptionStorage extends AbstractCProjectDescriptionSto context = new SettingsContext(project); des = getConvertedDescription(context); } catch (CoreException e) { - CCorePlugin.log(e); + // log the error except if the project got closed in another thread which is OK + if (project.isOpen()) { + CCorePlugin.log(e); + } } }