Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gvozdev2013-04-07 10:28:39 +0000
committerAndrew Gvozdev2013-05-02 15:43:45 +0000
commit4f51a6d37233146fa7f49c9d3d7c1cb41eaad01f (patch)
tree5caef472306ab212ffdda2553eedfdb3a73ee042
parent6b0b057af39bf7f489b6975efa72fc5bfaa72e9b (diff)
downloadorg.eclipse.cdt-4f51a6d37233146fa7f49c9d3d7c1cb41eaad01f.tar.gz
org.eclipse.cdt-4f51a6d37233146fa7f49c9d3d7c1cb41eaad01f.tar.xz
org.eclipse.cdt-4f51a6d37233146fa7f49c9d3d7c1cb41eaad01f.zip
bug 405102: JUnit: Intermittent failure managedbuilder.core.tests.BuildSystem40Tests.test40_pathconverter()
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ManagedBuildManager.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ManagedBuildManager.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ManagedBuildManager.java
index 7ce7087fe42..3d7a89435ee 100644
--- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ManagedBuildManager.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/core/ManagedBuildManager.java
@@ -2683,8 +2683,8 @@ public class ManagedBuildManager extends AbstractCExtension {
* Private helper method that first checks to see if a build information
* object has been associated with the project for the current workspace
* session. If one cannot be found, one is created from the project file
- * associated with the argument. If there is no prject file or the load
- * fails for some reason, the method will re{@code null}code>
+ * associated with the argument. If there is no project file or the load
+ * fails for some reason, the method will return {@code null}.
*/
private static ManagedBuildInfo findBuildInfo(IResource rc, boolean forceLoad) {
@@ -2697,6 +2697,12 @@ public class ManagedBuildManager extends AbstractCExtension {
ManagedBuildInfo buildInfo = null;
IProject proj = rc.getProject();
+ if (!proj.exists()) {
+ if(BuildDbgUtil.DEBUG)
+ BuildDbgUtil.getInstance().traceln(BuildDbgUtil.BUILD_INFO_LOAD, "build info load: info is null, project does not exist"); //$NON-NLS-1$
+ return null;
+ }
+
if(BuildDbgUtil.DEBUG)
BuildDbgUtil.getInstance().traceln(BuildDbgUtil.BUILD_INFO_LOAD, "build info load: info is null, querying the update mngr"); //$NON-NLS-1$
buildInfo = UpdateManagedProjectManager.getConvertedManagedBuildInfo(proj);

Back to the top